-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(usePersistedStateReducer.test): Fix flaky test of push tab retry (#…
…2191) * test(usePersistedStateReducerTest): wait for all promises to resolve before assertions * refactor(usePersistedStateReducer): store remaining retries with ref instead of state Prevents possible race conditions with between asynchronously updating the remaining retries count state & updating the tab state from dispatching actions * test(usePersistedStateReducer): await act in other retry logic test
- Loading branch information
1 parent
debeeb3
commit dddf906
Showing
2 changed files
with
15 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters