mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2024-10-01 01:35:42 -04:00
tests wait for less mining
This commit is contained in:
parent
e0e800a472
commit
f9559f2a13
@ -71,7 +71,6 @@ beforeAll(async () => {
|
||||
|
||||
// create client connected to alice's internal wallet
|
||||
aliceWallet = await monerojs.connectToWalletRpc(aliceWalletUrl, aliceWalletUsername, aliceWalletPassword);
|
||||
await aliceWallet.startSyncing(WALLET_SYNC_PERIOD);
|
||||
|
||||
// debug tools
|
||||
//for (let offer of await alice.getMyOffers("BUY")) await alice.removeOffer(offer.getId());
|
||||
@ -179,7 +178,7 @@ test("Can post and remove an offer", async () => {
|
||||
|
||||
// wait for alice to have unlocked balance to post offer
|
||||
let tradeAmount: bigint = BigInt("250000000000");
|
||||
await waitForUnlockedBalance(tradeAmount, alice);
|
||||
await waitForUnlockedBalance(tradeAmount * BigInt("5"), alice);
|
||||
|
||||
// get unlocked balance before reserving funds for offer
|
||||
let unlockedBalanceBefore: bigint = BigInt((await alice.getBalances()).getUnlockedBalance());
|
||||
@ -201,7 +200,7 @@ test("Invalidates offers when reserved funds are spent", async () => {
|
||||
|
||||
// wait for alice and bob to have unlocked balance for trade
|
||||
let tradeAmount: bigint = BigInt("250000000000");
|
||||
await waitForUnlockedBalance(tradeAmount, alice, bob);
|
||||
await waitForUnlockedBalance(tradeAmount * BigInt("5"), alice);
|
||||
|
||||
// get frozen key images before posting offer
|
||||
let frozenKeyImagesBefore = [];
|
||||
@ -254,7 +253,7 @@ test("Can complete a trade", async () => {
|
||||
|
||||
// wait for alice and bob to have unlocked balance for trade
|
||||
let tradeAmount: bigint = BigInt("250000000000");
|
||||
await waitForUnlockedBalance(tradeAmount, alice, bob);
|
||||
await waitForUnlockedBalance(tradeAmount * BigInt("5"), alice, bob);
|
||||
|
||||
// create bob's ethereum payment account
|
||||
let testAccount = TEST_CRYPTO_ACCOUNTS[0];
|
||||
|
Loading…
Reference in New Issue
Block a user