Many of the faster joins test flakes are due to the homeserver under
test failing to contact Complement homeservers after they have been
torn down. When this happens, subsequent tests can fail if they use a
Complement homeserver that happens to have the same hostname:port as one
which the homeserver under test has previously marked as offline.
Wait for the homeserver under test to finish broadcasting its leave at
the end of the device list tests.
Many of the faster joins test flakes are due to the homeserver under test failing to contact Complement homeservers after they have been torn down. When this happens, subsequent tests can fail if they use a Complement homeserver that happens to have the same hostname:port as one which the homeserver under test has previously marked as offline.
Wait for the homeserver under test to finish broadcasting its leave at the end of the device list tests.
Signed-off-by: Sean Quah seanq@matrix.org
Builds on top of #626. Reviewable commit by commit.
NB: you can tease out the flakes by forcing Complement to reuse ports whenever possible: