-
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 fullchain IT worker array no bad actors #158
migrate fullchain IT worker array no bad actors #158
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #158 +/- ##
========================================
Coverage 84.67% 84.67%
========================================
Files 35 35
Lines 1083 1083
Branches 221 221
========================================
Hits 917 917
Misses 166 166 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
test/000_fullchain.test.ts
Outdated
expectedBalanceChanges.push(workerStake + workerRewardPerTask / workerNumber); | ||
expectedFrozenChanges.push(0); | ||
} | ||
await changesInBalancesAndFrozens({ |
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.
Why not using
expect(tx).to.changeTokenBalances(iexecPoco, [iexecPoco, requester, scheduler, appProvider, datasetProvider, [
-(dealPrice + schedulerStakePerDeal),
0,
schedulerStakePerTask + schedulerRewardPerTask,
appPrice,
datasetPrice,
])
for (const worker of workers){
expect(tx).to.changeTokenBalance(iexecPoco, worker, workerStake + workerRewardPerTask / workerNumber)
}
then your custom method
await expectToChangeFrozen(..)
?
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.
I can if you prefer yes
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.
done here
No description provided.