Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add call validation, and fix flaky call validation tests
Previously, we only validated that a timeout was set, not that a servicename was specified when making an outbound call. Add validation, and do it before we get a connection. This avoids creating a connection that will not be used. Previously, we would create a connection, do validation, and close the connection immediately. On the inbound side, this led to a new connection that was closed almost immediately, and so sometimes the test would cause a: "Failed to add connection to peer" "connection is in an invalid state" By doing validation before we create a connection we make TestNoTimeout less flaky, while also returning errors earlier and faster.
- Loading branch information
Showing
3 changed files
with
34 additions
and
6 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
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