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.
Make breaker tests deterministic again. (knative#4784)
It's very important in these tests to assert failing requests to make sure the breaker's state is consistent. The change caused the "to be canceled" request to race the "supposed to be successful" request before it to the semaphore. If the "to be canceled" request won, it'd get capacity immediately and the cancel is defunct. The "supposed to be successful" request before it gets put into the queue and the `expectFailure` call hangs forever.
- Loading branch information
1 parent
0e250d1
commit bc20336
Showing
2 changed files
with
17 additions
and
13 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