Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 5f0b5a3

Browse files
committed
Check that wallet balance is eventually >= expected balance
1 parent f230c8b commit 5f0b5a3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

api_tests/lib_sdk/actors/actor.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,15 @@ export class Actor {
228228
).add(expectedBalanceChange);
229229
const maximumFee = wallet.MaximumFee;
230230

231-
const actualBalance = new BigNumber(await wallet.getBalance());
232-
await expect(actualBalance.gte(expectedBalance.sub(maximumFee))).to
233-
.be.true;
231+
await expect(
232+
wallet
233+
.getBalance()
234+
.then(balance =>
235+
new BigNumber(balance).gte(
236+
expectedBalance.sub(maximumFee)
237+
)
238+
)
239+
).to.eventually.be.true;
234240
}
235241
}
236242

0 commit comments

Comments
 (0)