Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flakey 'query remote device keys' test #648

Merged
merged 1 commit into from
Sep 4, 2023

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
4 checks passed
@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