From 004869de80543cb96e14b9aecf7767598b2439da Mon Sep 17 00:00:00 2001 From: shum Date: Thu, 19 Feb 2026 07:29:39 +0000 Subject: [PATCH] core: fix flaky testGroupMemberReports for async broadcast delete events --- tests/ChatTests/Groups.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ChatTests/Groups.hs b/tests/ChatTests/Groups.hs index 0ea220b573..7296c512fb 100644 --- a/tests/ChatTests/Groups.hs +++ b/tests/ChatTests/Groups.hs @@ -7305,6 +7305,9 @@ testGroupMemberReports = alice #$> ("/_get chat #1 content=report count=100", chat, [(0, "report content [marked deleted by you]")]) bob #$> ("/_get chat #1 content=report count=100", chat, [(0, "report content [marked deleted by alice]")]) dan #$> ("/_get chat #1 content=report count=100", chat, [(1, "report content")]) + -- broadcast delete produces async forwarding/archiving events; drain all queues + let drain cc = timeout 500000 (getTermLine cc) >>= mapM_ (\_ -> drain cc) + concurrentlyN_ [drain alice, drain bob, drain cath, drain dan] testMemberMention :: HasCallStack => TestParams -> IO () testMemberMention =