git.delta.rocks / unique-network / refs/commits / 06a95fc1cf15

difftreelog

format(CollatorSelection): tests

Fahrrader2022-04-01parent: #32beeaf.patch.diff
in: master

1 file changed

modifiedtests/src/shuffleCollators.test.tsdiffbeforeafterboth
7171
72 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();