Skip to content

Fix flakey 'query remote device keys' test#648

Merged
erikjohnston merged 1 commit intomainfrom
erikj/fix_flakey_device_query
Sep 4, 2023
Merged

Fix flakey 'query remote device keys' test#648
erikjohnston merged 1 commit intomainfrom
erikj/fix_flakey_device_query

Conversation

@erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Sep 4, 2023

i.e. TestFederationKeyUploadQuery/Can_query_remote_device_keys_using_POST / Can query remote device keys using POST

Closes matrix-org/synapse#16020

@erikjohnston erikjohnston requested review from a team as code owners September 4, 2023 08:26
Comment on lines +83 to +85
// Device list changes only come down incremental syncs, so we do an
// initial sync up front.
_, nextBatch := bob.MustSync(t, client.SyncReq{})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable---but how did the test ever pass without this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that things were slow enough that the device list update wouldn't make it down the first /sync?

@erikjohnston erikjohnston merged commit feea136 into main Sep 4, 2023
@erikjohnston erikjohnston deleted the erikj/fix_flakey_device_query branch September 4, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Complement flake TestFederationKeyUploadQuery/Parallel/Can_query_remote_device_keys_using_POST

2 participants