grpc-go/test
Menghan Li 0ab423af82
test: fix flaky GoAwayThenClose (#4394)
In this test, we
1. make a streaming RPC on a connection
1. graceful stop it to send a GOAWAY
1. hard stop it, so the client will create a connection to another server

Before this fix, 2 and 3 can happen too soon, so the RPC in 1 would fail
and then transparent retry (because the stream is unprocessed by the
server in that case).

This retry attempt could pick the new connection, and then the RPC would
block until timeout.

After this streaming RPC fails, we make unary RPCs with the same
deadline (note: deadline not timeout) as the streaming RPC and expect
them to succeed. But they will also fail due to timeout.

The fix is to make a round-trip on the streaming RPC first, to make sure
it actually goes on the first connection.
2021-05-07 11:55:48 -07:00
..
bufconn Modified tests to use tlogger. (#3343) 2020-02-06 13:03:20 -08:00
codec_perf protobuf: update protoc to latest version (#4038) 2020-11-16 16:59:46 -08:00
go_vet internal: reintroduce legacy appengine build constraints (#3838) 2020-08-25 13:49:57 -07:00
grpc_testing cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment (#4313) 2021-04-09 16:30:59 -07:00
kokoro test: extend the xDS interop tests timeout to 360 mins (#4380) 2021-05-05 13:37:13 -07:00
tools Invoke Go Vet Check in Sub-modules (#4302) 2021-04-02 11:19:22 -07:00
authority_test.go test: Run e2e authority tests only on linux. (#4160) 2021-01-19 18:00:32 -08:00
balancer_test.go Move exponential backoff to DNS resolver from resolver.ClientConn (#4270) 2021-04-20 13:20:09 -04:00
channelz_linux_go110_test.go cmd/protoc-gen-go-grpc: revert to interface-based service registration (#3911) 2020-09-29 15:17:06 -07:00
channelz_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
context_canceled_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
creds_test.go testing: Avoid using context.Background (#3949) 2020-11-05 09:25:17 -08:00
end2end_test.go test: fix flaky GoAwayThenClose (#4394) 2021-05-07 11:55:48 -07:00
goaway_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
gracefulstop_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
healthcheck_test.go testing: Avoid using context.Background (#3949) 2020-11-05 09:25:17 -08:00
insecure_creds_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
local_creds_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
logging.go internal: clean up all usages of grpclog, and replace with component (#3719) 2020-08-06 13:19:17 -07:00
race.go autofix license notice 2017-06-08 14:42:19 +02:00
rawConnWrapper.go Update go.mod for golang/x/tools and staticcheck (#2832) 2019-05-24 11:13:46 -07:00
resolver_test.go resolver: allow config selector to return an RPC error (#4082) 2020-12-08 13:32:37 -08:00
retry_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
server_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00
servertester.go End stream flag bugfix (#3803) 2020-08-21 14:22:17 -07:00
stream_cleanup_test.go test: move stubServer to separate package in internal (#4081) 2020-12-04 15:56:07 -08:00