testing: fix race caused by successful Accept on a shutdown server (#2321)
This commit is contained in:
@ -1526,6 +1526,7 @@ func TestCZSubChannelConnectivityState(t *testing.T) {
|
||||
defer cleanup()
|
||||
r.InitialAddrs([]resolver.Address{{Addr: te.srvAddr}})
|
||||
te.resolverScheme = r.Scheme()
|
||||
te.customDialOptions = []grpc.DialOption{grpc.WithWaitForHandshake()}
|
||||
cc := te.clientConn()
|
||||
defer te.tearDown()
|
||||
tc := testpb.NewTestServiceClient(cc)
|
||||
@ -1621,6 +1622,7 @@ func TestCZChannelConnectivityState(t *testing.T) {
|
||||
defer cleanup()
|
||||
r.InitialAddrs([]resolver.Address{{Addr: te.srvAddr}})
|
||||
te.resolverScheme = r.Scheme()
|
||||
te.customDialOptions = []grpc.DialOption{grpc.WithWaitForHandshake()}
|
||||
cc := te.clientConn()
|
||||
defer te.tearDown()
|
||||
tc := testpb.NewTestServiceClient(cc)
|
||||
|
Reference in New Issue
Block a user