mirror of https://github.com/grpc/grpc-go.git
fix Timeout interop test
This commit is contained in:
parent
fb14f48984
commit
db71b8f965
|
|
@ -266,6 +266,10 @@ func doTimeoutOnSleepingServer(tc testpb.TestServiceClient) {
|
|||
ctx, _ := context.WithTimeout(context.Background(), 1*time.Millisecond)
|
||||
stream, err := tc.FullDuplexCall(ctx)
|
||||
if err != nil {
|
||||
if grpc.Code(err) == codes.DeadlineExceeded) {
|
||||
grpclog.Println("TimeoutOnSleepingServer done")
|
||||
return
|
||||
}
|
||||
grpclog.Fatalf("%v.FullDuplexCall(_) = _, %v", tc, err)
|
||||
}
|
||||
pl := newPayload(testpb.PayloadType_COMPRESSABLE, 27182)
|
||||
|
|
|
|||
Loading…
Reference in New Issue