-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate 300 fullchain reopen file #170
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #170 +/- ##
==========================================
Coverage ? 84.68%
==========================================
Files ? 35
Lines ? 1084
Branches ? 221
==========================================
Hits ? 918
Misses ? 166
Partials ? 0 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you :)
test/300_fullchain-reopen.test.ts
Outdated
const firstContribution = workers.slice(0, 2); | ||
const secondContribution = workers.slice(2, 4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const firstContribution = workers.slice(0, 2); | |
const secondContribution = workers.slice(2, 4); | |
const firstContributors = workers.slice(0, 2); | |
const secondContributors = workers.slice(2, 4); |
test/300_fullchain-reopen.test.ts
Outdated
.withArgs(taskId); | ||
expect((await iexecPoco.viewTask(taskId)).status).to.equal(TaskStatusEnum.ACTIVE); | ||
// test that the already contributed worker 1 can't contribute anymore | ||
const { resultHash, resultSeal } = buildResultHashAndResultSeal( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for (firstContributors) {
expect.reverted
}
test/300_fullchain-reopen.test.ts
Outdated
const finalizeTx = await iexecPocoAsScheduler.finalize(taskId, results, '0x'); | ||
await finalizeTx.wait(); | ||
const totalWorkerPoolReward = | ||
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad wrokers lose their stake and add it to the pool price |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad wrokers lose their stake and add it to the pool price | |
workerpoolPrice + workerStakePerTask * firstContribution.length; // bad workers lose their stake and add it to the pool price |
test/300_fullchain-reopen.test.ts
Outdated
[ | ||
expectedProxyBalanceChange, | ||
0, | ||
expectedSchedulerBalanceChange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expectedSchedulerBalanceChange, | |
schedulerStakePerTask + schedulerRewardPerTask, |
No description provided.