Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
nanocryk committed Dec 17, 2024
1 parent 698ae90 commit a74a7cf
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,14 @@ describeSuite({
id: "T04",
title: "Operator produces blocks",
test: async function () {
// wait a bit more
await waitSessions(context, relayApi, 6, null, "Tanssi-relay");

for (let i = 0; i < 20; ++i) {
const latestBlockHash = await relayApi.rpc.chain.getBlockHash();
const author = (await relayApi.derive.chain.getHeader(latestBlockHash)).author;
if (author == operatorAccount.address) {
return;
}

await context.waitBlock(2, "Tanssi-relay");
await context.waitBlock(1, "Tanssi-relay");
}

expect.fail("operator didn't produce a block");
Expand Down

0 comments on commit a74a7cf

Please sign in to comment.