expect key image polling within 20s on local

only test 4 trades at a time
This commit is contained in:
woodser 2022-12-18 15:58:24 +00:00
parent 0de4ec6fff
commit 5fbeae0a07

View File

@ -1270,7 +1270,7 @@ test("Can complete a trade", async () => {
}); });
test("Can complete trades at the same time (CI)", 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 () => { 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 // mine block so spend is confirmed
await mineBlocks(1); await mineBlocks(1);
await wait(TestConfig.walletSyncPeriodMs * 2);
// offer is removed from peer offers // 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"); 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 // offer is removed from my offers