-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky
ResponseCancelTest
(#2337)
Motivation: #2297 indicates that `ResponseCancelTest` sometimes fails. It happens because we incorrectly request signals from `delayedClientTermination` queue. After cancel we may or may not see a terminal event. In rare cases, `StacklessClosedChannelException` is propagated to the subscriber after cancel. The next request does not assume that there is a pending `ClientTerminationSignal` in the queue and considers this exception as failure for a new request. Modifications: - Introduce a `requestId` to associate `ClientTerminationSignal` with a proper request; - Discard signals for prior requests inside `resume` logic; - Wrap `signal.err` with `AssertionError` to preserve a caller stack trace; Result: Fixes #2297.
- Loading branch information
1 parent
438892b
commit 906c4fc
Showing
1 changed file
with
84 additions
and
28 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