From 3c53253066b5a959a6c78726696851df186a6d8a Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 18 Dec 2024 15:09:55 -0500 Subject: [PATCH] tests expect more notifications on take offer --- src/HavenoClient.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HavenoClient.test.ts b/src/HavenoClient.test.ts index 04a90a3f..c778e404 100644 --- a/src/HavenoClient.test.ts +++ b/src/HavenoClient.test.ts @@ -2909,7 +2909,7 @@ async function takeOffer(ctxP: Partial): Promise { // maker is notified that offer is taken await wait(ctx.maxTimePeerNoticeMs); const tradeNotifications = getNotifications(makerNotifications, NotificationMessage.NotificationType.TRADE_UPDATE, takerTrade.getTradeId()); - expect(tradeNotifications.length).toBe(1); + expect(tradeNotifications.length).toBeGreaterThanOrEqual(1); // we get notification of deposits published at least assert(moneroTs.GenUtils.arrayContains(["DEPOSITS_PUBLISHED", "DEPOSITS_CONFIRMED", "DEPOSITS_UNLOCKED"], tradeNotifications[0].getTrade()!.getPhase()), "Unexpected trade phase: " + tradeNotifications[0].getTrade()!.getPhase()); expect(tradeNotifications[0].getTitle()).toEqual("Offer Taken"); expect(tradeNotifications[0].getMessage()).toEqual("Your offer " + ctx.offerId + " has been accepted");