Skip to content

Commit 715c453

Browse files
committed
update to contributions naming
1 parent 83a8e64 commit 715c453

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/000_fullchain.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ describe('Integration tests', function () {
302302
const { resultDigest: badResultDigest } = buildUtf8ResultAndDigest('bad-result');
303303
const losingWorker = worker1;
304304
const winningWorkers = workersAvailable.slice(1, workerNumber);
305-
let workers = [{ signer: worker1, resultDigest: badResultDigest }];
305+
let contributions = [{ signer: worker1, resultDigest: badResultDigest }];
306306
for (const worker of winningWorkers) {
307-
workers.push({ signer: worker, resultDigest: resultDigest });
307+
contributions.push({ signer: worker, resultDigest: resultDigest });
308308
}
309309
const accounts = [
310310
requester,
@@ -336,20 +336,20 @@ describe('Integration tests', function () {
336336
const schedulerRewardPerTask = workerpoolPrice - workerRewardPerTask;
337337
const accountsInitialFrozens = await getInitialFrozens(accounts);
338338
// Check initial balances.
339-
for (const worker of workers) {
340-
expect(await iexecPoco.viewScore(worker.signer.address)).to.be.equal(0);
339+
for (const contributor of contributions) {
340+
expect(await iexecPoco.viewScore(contributor.signer.address)).to.be.equal(0);
341341
}
342342
const taskId = await iexecWrapper.initializeTask(dealId, 0);
343343
// Finalize task and check balance changes.
344344
const workerStake = await iexecPoco
345345
.viewDeal(dealId)
346346
.then((deal) => deal.workerStake.toNumber());
347-
for (const worker of workers) {
347+
for (const contributor of contributions) {
348348
await iexecWrapper.contributeToTask(
349349
dealId,
350350
0,
351-
worker.resultDigest,
352-
worker.signer,
351+
contributor.resultDigest,
352+
contributor.signer,
353353
);
354354
}
355355
for (const winningWorker of winningWorkers) {

0 commit comments

Comments
 (0)