diff --git a/tests/federation_room_join_partial_state_test.go b/tests/federation_room_join_partial_state_test.go index 9ed3d78b..d383ca46 100644 --- a/tests/federation_room_join_partial_state_test.go +++ b/tests/federation_room_join_partial_state_test.go @@ -3718,6 +3718,10 @@ func TestPartialStateJoin(t *testing.T) { // Cleanup. psjResult.FinishStateRequest() + // Dirty hack to allow the homeserver under test to finish making requests to the + // Complement homeserver as part of syncing the full state. + psjResult.AwaitStateIdsRequest(t) + time.Sleep(time.Second / 2) }) t.Run("can be triggered by remote ban", func(t *testing.T) { @@ -3781,6 +3785,10 @@ func TestPartialStateJoin(t *testing.T) { // Cleanup. psjResult.FinishStateRequest() + // Dirty hack to allow the homeserver under test to finish making requests to the + // Complement homeserver as part of syncing the full state. + psjResult.AwaitStateIdsRequest(t) + time.Sleep(time.Second / 2) }) })