Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
zguesmi committed Nov 8, 2024
1 parent 8687563 commit f231b9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/byContract/IexecPoco/IexecPoco1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ describe('IexecPoco1', () => {
workerpoolPrice,
);
const schedulerRewardRatioPerTask =
await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress);
await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress);
// Deposit required amounts.
await iexecWrapper.depositInIexecAccount(requester, dealPrice);
await iexecWrapper.depositInIexecAccount(scheduler, schedulerStake);
Expand Down Expand Up @@ -505,7 +505,7 @@ describe('IexecPoco1', () => {
await iexecWrapper.computeWorkerTaskStake(workerpoolAddress, workerpoolPrice),
);
expect(deal.schedulerRewardRatio).to.equal(
await iexecWrapper.getSchedulerRewardRatioPerTask(workerpoolAddress),
await iexecWrapper.getSchedulerRewardRatio(workerpoolAddress),
);
expect(deal.sponsor).to.equal(requester.address);
});
Expand Down
2 changes: 1 addition & 1 deletion test/utils/IexecWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class IexecWrapper {
* @param workerpoolAddress address of the workerpool
* @returns value of the reward
*/
async getSchedulerRewardRatioPerTask(workerpoolAddress: string) {
async getSchedulerRewardRatio(workerpoolAddress: string) {
return (
await Workerpool__factory.connect(
workerpoolAddress,
Expand Down

0 comments on commit f231b9d

Please sign in to comment.