Skip to content

Commit

Permalink
change bad contribution result
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec committed Dec 9, 2024
1 parent cf06e9b commit 8380346
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/200_fullchain-bot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Integration tests', function () {
],
2: [
{ worker: worker1, useEnclave: false, result: 'iExec BOT 2' },
{ worker: worker3, useEnclave: false, result: '<timeout reached>' },
{ worker: worker3, useEnclave: false, result: '<bad contribution>' },
{ worker: worker2, useEnclave: true, result: 'iExec BOT 2' },
{ worker: worker4, useEnclave: true, result: 'iExec BOT 2' },
{ worker: worker5, useEnclave: true, result: 'iExec BOT 2' },
Expand Down Expand Up @@ -127,6 +127,7 @@ describe('Integration tests', function () {
.viewDeal(dealId)
.then((deal) => deal.workerStake.toNumber());
for (let taskIndex = 0; taskIndex < volume; taskIndex++) {
console.log('Task index: ' + taskIndex);
const taskId = await iexecWrapper.initializeTask(dealId, taskIndex);
const initialScores = await getInitialScores(workers);
const contributions = tasksAndWorkers[taskIndex];
Expand All @@ -144,7 +145,7 @@ describe('Integration tests', function () {
for (const contribution of contributions) {
const { worker, result } = contribution;
const { resultDigest } = buildUtf8ResultAndDigest(result);
if (result !== '<timeout reached>') {
if (result !== '<bad contribution>') {
await iexecPoco
.connect(worker)
.reveal(taskId, resultDigest)
Expand Down

0 comments on commit 8380346

Please sign in to comment.