Skip to content

Commit 0764ba1

Browse files
committed
checks that bad worker can't reveal
1 parent 715c453 commit 0764ba1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/000_fullchain.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ describe('Integration tests', function () {
352352
contributor.signer,
353353
);
354354
}
355+
// verify that the bad worker can't reveal.
356+
await expect(
357+
iexecPoco.connect(losingWorker).reveal(taskId, badResultDigest),
358+
).to.be.revertedWithoutReason();
355359
for (const winningWorker of winningWorkers) {
356360
await iexecPoco
357361
.connect(winningWorker)

0 commit comments

Comments
 (0)