Skip to content

Fix a flaky test - #3649

Merged
richvdh merged 1 commit into
developfrom
rav/fix_test_fail
Apr 18, 2017
Merged

Fix a flaky test#3649
richvdh merged 1 commit into
developfrom
rav/fix_test_fail

Conversation

@richvdh

@richvdh richvdh commented Apr 18, 2017

Copy link
Copy Markdown
Member

Depending on timing, the first httpBackend.flush() could end up just flushing
a '/presence' call rather than the initial sync. The fix to that is simply to
not set the expectation on /presence.

While we're there, split out the flushes of /publicRooms and
/thirdparty/protocols, so that we can be sure that they happen.

There is probably still a bunch of flakiness there, but this should fix one
particular instance.

Depending on timing, the first `httpBackend.flush()` could end up just flushing
a '/presence' call rather than the initial sync. The fix to that is simply to
not set the expectation on /presence.

While we're there, split out the flushes of /publicRooms and
/thirdparty/protocols, so that we can be sure that they happen.

There is probably still a bunch of flakiness there, but this should fix one
particular instance.
@richvdh
richvdh merged commit 9fd379c into develop Apr 18, 2017
@richvdh
richvdh deleted the rav/fix_test_fail branch April 18, 2017 14:53
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.

2 participants