Skip to content

Commit 30a553e

Browse files
committed
moove task completed down
1 parent 2a25dca commit 30a553e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/200_fullchain-bot.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ describe('Integration tests', function () {
165165
const finalizeTx = await iexecPoco.connect(scheduler).finalize(taskId, results, '0x');
166166
await finalizeTx.wait();
167167
expect((await iexecPoco.viewTask(taskId)).status).to.equal(TaskStatusEnum.COMPLETED);
168-
// Multiply amount by the number of finalized tasks to correctly compute
169-
// stake and reward amounts.
170-
const completedTasks = taskIndex + 1;
171168
// Verify token balance changes
172169
const winningWorkers = contributions
173170
.filter(
@@ -224,6 +221,9 @@ describe('Integration tests', function () {
224221
...nonParticipantWorkers.map(() => 0), // non participant workers
225222
],
226223
);
224+
// Multiply amount by the number of finalized tasks to correctly compute
225+
// stake and reward amounts.
226+
const completedTasks = taskIndex + 1;
227227
// Calculate expected frozen changes
228228
const expectedFrozenChanges = [
229229
0, // Proxy

0 commit comments

Comments
 (0)