difftreelog
format(CollatorSelection): tests
in: master
1 file changed
tests/src/shuffleCollators.test.tsdiffbeforeafterboth717172 const expectedSessionIndex = (await api.query.session.currentIndex() as any).toNumber() + 2;72 const expectedSessionIndex = (await api.query.session.currentIndex() as any).toNumber() + 2;73 let currentSessionIndex = -1;73 let currentSessionIndex = -1;74 console.log('Waiting for the session after the next. This might take a while...');74 while (currentSessionIndex < expectedSessionIndex) {75 while (currentSessionIndex < expectedSessionIndex) {75 await waitNewBlocks(api, 1);76 await waitNewBlocks(api, 1);76 currentSessionIndex = (await api.query.session.currentIndex() as any).toNumber();77 currentSessionIndex = (await api.query.session.currentIndex() as any).toNumber();