From 5fbeae0a07ad4e8deefa72e58b6352f5cfe9edc1 Mon Sep 17 00:00:00 2001 From: woodser Date: Sun, 18 Dec 2022 15:58:24 +0000 Subject: [PATCH] expect key image polling within 20s on local only test 4 trades at a time --- src/HavenoClient.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index b16fea45..1f8e0db4 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -1270,7 +1270,7 @@ test("Can complete a trade", async () => { }); test("Can complete trades at the same time (CI)", async () => { - await executeTrades(getTradeContexts(6)); + await executeTrades(getTradeContexts(4)); }); test("Can complete all trade combinations (stress)", async () => { @@ -1492,9 +1492,9 @@ test("Invalidates offers when reserved funds are spent (CI)", async () => { // mine block so spend is confirmed await mineBlocks(1); - await wait(TestConfig.walletSyncPeriodMs * 2); // offer is removed from peer offers + await wait(20000); if (getOffer(await user2.getOffers(assetCode, "buy"), offer.getId())) throw new Error("Offer " + offer.getId() + " was found in peer's offers after reserved funds spent"); // offer is removed from my offers