-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
filewatch: refactor tests to rely on state vs actions (#4296)
This will make the tests easier to migrate to an apiserver world, but the real motivation is for splitting the actions between the create and reconcile, which results in more complex store interactions across multiple subscribers that isn't practical to test using the testing store. This uses the "real" store with a minimal reducer that just handles FileWatch actions. New assertions have also been added that verify the FileWatch spec is created as expected and also serve to force synchronization on the naturally async store, so that the tests are still as deterministic as possible.
- Loading branch information
Showing
3 changed files
with
252 additions
and
136 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
Oops, something went wrong.