From 690569817822032e8341173ac71c60e040492786 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 17 Nov 2023 15:58:43 +0000 Subject: [PATCH] Attempt to suppress races --- tests/membership_acls_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/membership_acls_test.go b/tests/membership_acls_test.go index 6fff8c3..56128f3 100644 --- a/tests/membership_acls_test.go +++ b/tests/membership_acls_test.go @@ -59,6 +59,7 @@ func TestAliceBobEncryptionWorks(t *testing.T) { // sends the event. bob := MustLoginClient(t, clientTypeB, api.FromComplementClient(csapiBob, "complement-crypto-password"), ss) defer bob.Close(t) + time.Sleep(100 * time.Millisecond) alice := MustLoginClient(t, clientTypeA, api.FromComplementClient(csapiAlice, "complement-crypto-password"), ss) defer alice.Close(t) @@ -287,6 +288,7 @@ func TestOnRejoinBobCanSeeButNotDecryptHistoryInPublicRoom(t *testing.T) { // Similarly to TestAliceBobEncryptionWorks, log Bob in first. bob := MustLoginClient(t, clientTypeB, api.FromComplementClient(csapiBob, "complement-crypto-password"), ss) defer bob.Close(t) + time.Sleep(100 * time.Millisecond) alice := MustLoginClient(t, clientTypeA, api.FromComplementClient(csapiAlice, "complement-crypto-password"), ss) defer alice.Close(t)