Skip to content

Commit

Permalink
checks that bad worker can't reveal
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Nov 21, 2024
1 parent 715c453 commit 0764ba1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/000_fullchain.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ describe('Integration tests', function () {
contributor.signer,
);
}
// verify that the bad worker can't reveal.
await expect(
iexecPoco.connect(losingWorker).reveal(taskId, badResultDigest),
).to.be.revertedWithoutReason();
for (const winningWorker of winningWorkers) {
await iexecPoco
.connect(winningWorker)
Expand Down

0 comments on commit 0764ba1

Please sign in to comment.