-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration: 'go test -tags cluster_proxy -v ./integration/... ./clie…
…ntv3/...' passes now. The grpc-proxy test logic was assuming that the context associated to client is closed, while in practice all tests called client.Close() without explicit context close. The current testing strategy is complicated 2 fold: - grpc proxy works like man-in-the middle of each Connection issues from integration tests and its lifetime is bound to the connection. - both connections (client -> proxy, and proxy -> etcd-server) are represented by the same ClientV3 object instance (with substituted implementations of KV or watcher). The fix splits context representing proxy from context representing proxy -> etcd-server connection, thus allowing cancelation of the proxy context.
- Loading branch information
Showing
5 changed files
with
42 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
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
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