From c2c70fa1149898df28ca0edadf10ddf70397509d Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Fri, 11 Sep 2026 14:26:32 +0400 Subject: [PATCH] core: fix flaky badge presentation catch-up test --- tests/Bots/BadgeServiceTests.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Bots/BadgeServiceTests.hs b/tests/Bots/BadgeServiceTests.hs index ab34c792f2..3725741d37 100644 --- a/tests/Bots/BadgeServiceTests.hs +++ b/tests/Bots/BadgeServiceTests.hs @@ -1042,6 +1042,8 @@ testPresentationCatchesUp ps = length expiries `shouldBe` 2 let firstMonth = head expiries latestMonth = last expiries + -- without this bob can receive the presentation after the updates below and never lose it + waitPeerBadgeExpiry (chatController bob) latestMonth -- the renewal's rows are kept; only its presentation is undone, on both sides setBadgeExpiry (chatController alice) "badge_signature" firstMonth setBadgeExpiry (chatController bob) "badge_proof" firstMonth