-
-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix erratic livequery tests. (#2095)
Change how we wait until an expected result is emitted from a live query. Current tests were more prone to timing issues and race conditions. Now we instead do the following for those tests: 1. Define the expected results 2. Subscribe to live query and wait until the expected results arrive, or a timeout of 500 ms happens. The thing is that liveQueries might emit a previous result at first, so by ignoring temporary outdated results we're not prone to timing issues. Co-authored-by: David Fahlander <david@dexie.org>
- Loading branch information
1 parent
8e55011
commit 7ec8ce3
Showing
1 changed file
with
37 additions
and
71 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