forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite Configuration tests to call syncHandler directly (knative#401)
* Rewrite test to call syncHandler directly This test is more reliable when the controller and informers are not running, and the test calls syncHandler when necessary. We still need hooks to test events since they're always delivered asynchronously. * Correct polarity of test conditions * Convert remaining tests to use stopped controllers Calling syncHandler directly is currently more reliable than a running controller and informer. * Add test of running controller logic The file queueing_test.go is for testing running controllers, versus controller_test.go which tests non-running controllers. Because of the issues with watches in client-go 1.9, the running controller tests must insert all objects into the client in advance to avoid racy failures. When we upgrade to 1.10 these tests can more naturally call Create() without races. * Add missing comments explaining Indexer Add
- Loading branch information
Showing
3 changed files
with
202 additions
and
117 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.