Skip to content

Use on_logged_in action in tests#9279

Merged
jryans merged 2 commits intoelement-hq:developfrom
jryans:storage-edge-cases
Mar 27, 2019
Merged

Use on_logged_in action in tests#9279
jryans merged 2 commits intoelement-hq:developfrom
jryans:storage-edge-cases

Conversation

@jryans
Copy link
Copy Markdown
Collaborator

@jryans jryans commented Mar 26, 2019

This changes the way tests wait for login to complete from a timer-based system
(which can cause intermittent failures) to an action-based system. The lifecycle
code dispatches the action on_logged_in when login completes which we can wait
for in the tests as a much better indication that work is done.

Required for matrix-org/matrix-react-sdk#2826
Part of #9271

jryans added 2 commits March 26, 2019 14:41
This changes the way tests wait for login to complete from a timer-based system
(which can cause intermittent failures) to an action-based system. The lifecycle
code dispatches the action `on_logged_in` when login completes which we can wait
for in the tests as a much better indication that work is done.
@jryans jryans requested a review from a team March 26, 2019 15:57
@jryans jryans merged commit e8ec6cc into element-hq:develop Mar 27, 2019
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