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

break OnAction and OnEnter canellation tests #170

Merged
merged 1 commit into from
Jul 31, 2021

Conversation

gabrielittner
Copy link
Member

@gabrielittner gabrielittner commented Jul 29, 2021

Builds on top of #169.

With all the other stuff out of the way I was now finally able to reproduce #128 in tests. Now that it's running asynchronously all that needed to be done is moving the assertFalse for reached down. Similar to case 3 in #169 the assertion happened before the action was processed in the state machine so reached was still false but it would change a bit later. It would have been enough to move them one line down after the next expectItem but I moved them to the end where they should always work.

Unfortunately I still can't break a test for #166/collectWhileInState.

@gabrielittner gabrielittner changed the title break FlowReduxStateMachineTest - launch is not blocking break OnAction and OnEnter canellation tests Jul 29, 2021
@sockeqwe
Copy link
Collaborator

Lets merge all these back into test-unconfined branch and use that one as base branch to fix things

@sockeqwe sockeqwe merged commit aef68c8 into tests-unconfined Jul 31, 2021
@sockeqwe sockeqwe deleted the tests-cancel branch July 31, 2021 13:38
gabrielittner added a commit that referenced this pull request Aug 2, 2021
* fix issues hidden by Unconfined Dispatcher

* break OnAction and OnEnter canellation tests (#170)

* fix race condition in reduxStore (#172)

* remove onEnter flatMapPolicy and fix cancellation when leaving state (#174)

* cancel onAction when leaving the current state (#175)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants