From 8b0a16ed3532229bea11dc635f56289f5d087a1a Mon Sep 17 00:00:00 2001 From: Kegan Dougal <7190048+kegsay@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:50:54 +0000 Subject: [PATCH] Skip broken test under certain configurations: https://github.com/element-hq/synapse/issues/15717 --- tests/membership_acls_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/membership_acls_test.go b/tests/membership_acls_test.go index dbcb22a..edb5105 100644 --- a/tests/membership_acls_test.go +++ b/tests/membership_acls_test.go @@ -155,6 +155,12 @@ func TestBobCanSeeButNotDecryptHistoryInPublicRoom(t *testing.T) { // Bob leaves the room. Some messages are sent. Bob rejoins and cannot decrypt the messages sent whilst he was gone (ensuring we cycle keys). func TestOnRejoinBobCanSeeButNotDecryptHistoryInPublicRoom(t *testing.T) { ClientTypeMatrix(t, func(t *testing.T, clientTypeA, clientTypeB api.ClientType) { + // disable this test if A) it's over federation and B) the HS2 user is on JS + // due to https://github.com/element-hq/synapse/issues/15717 + if clientTypeA.HS != clientTypeB.HS && clientTypeB.Lang == api.ClientTypeJS { + t.Skipf("skipping due to https://github.com/element-hq/synapse/issues/15717") + return + } tc := CreateTestContext(t, clientTypeA, clientTypeB) // shared history visibility roomID := tc.CreateNewEncryptedRoom(t, tc.Alice, "public_chat", nil)