-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
okhttp: Remove RPCs-before-ready tests
In the olden days, before LB policies, transports had to accept RPCs as soon as they were created. This hasn't been true for a very long time, so remove the tests. Since a978c9e we're using real, legit code flows in the tests. This allowed TSAN to discover that `attributes` is racy when read when creating a new stream before the transport is ready. We could use a lock or volatile, but the value of the attributes would still be incorrect for any RPCs that are created before the transport is ready. Since there's now only one test that delays the connection, I inline the support code.
- Loading branch information
Showing
1 changed file
with
8 additions
and
89 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