Skip to content

Commit 03d1f8d

Browse files
test(sendEmail): make allowDeposit tests robust for variable task costs
1 parent 8c26d78 commit 03d1f8d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/e2e/sendEmail.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -704,10 +704,8 @@ describe('web3mail.sendEmail()', () => {
704704
error.cause?.message ||
705705
error.cause ||
706706
error.errorCause;
707-
expect(causeMsg).toBe(
708-
`Cost per task (${
709-
dataPricePerAccess + workerpoolprice
710-
}) is greater than requester account stake (0). Orders can't be matched. If you are the requester, you should deposit to top up your account`
707+
expect(String(causeMsg)).toContain(
708+
"is greater than requester account stake (0). Orders can't be matched. If you are the requester, you should deposit to top up your account"
711709
);
712710
},
713711
3 * MAX_EXPECTED_BLOCKTIME + MAX_EXPECTED_WEB2_SERVICES_TIME

0 commit comments

Comments
 (0)