Skip to content

Commit f231b9d

Browse files
committed
Rename function
1 parent 8687563 commit f231b9d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/byContract/IexecPoco/IexecPoco1.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ describe('IexecPoco1', () => {
380380
workerpoolPrice,
381381
);
382382
const schedulerRewardRatioPerTask =
383-
await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress);
383+
await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress);
384384
// Deposit required amounts.
385385
await iexecWrapper.depositInIexecAccount(requester, dealPrice);
386386
await iexecWrapper.depositInIexecAccount(scheduler, schedulerStake);
@@ -505,7 +505,7 @@ describe('IexecPoco1', () => {
505505
await iexecWrapper.computeWorkerTaskStake(workerpoolAddress, workerpoolPrice),
506506
);
507507
expect(deal.schedulerRewardRatio).to.equal(
508-
await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress),
508+
await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress),
509509
);
510510
expect(deal.sponsor).to.equal(requester.address);
511511
});

test/utils/IexecWrapper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class IexecWrapper {
142142
* @param workerpoolAddress address of the workerpool
143143
* @returns value of the reward
144144
*/
145-
async getSchedulerRewardRatioPerTask(workerpoolAddress: string) {
145+
async getSchedulerRewardRatio(workerpoolAddress: string) {
146146
return (
147147
await Workerpool__factory.connect(
148148
workerpoolAddress,

0 commit comments

Comments
 (0)