You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/service_config_deprecated_test.go
+13-9Lines changed: 13 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,9 @@ func testServiceConfigTimeoutTD(t *testing.T, e env) {
177
177
te, ch:=testServiceConfigSetupTD(t, e)
178
178
deferte.tearDown()
179
179
180
-
// Case1: Client API sets timeout to be 1ns and ServiceConfig sets timeout to be 1hr. Timeout should be 1ns (min of 1ns and 1hr) and the rpc will wait until deadline exceeds.
180
+
// Case1: Client API sets timeout to be 1ns and ServiceConfig sets timeout
181
+
// to be 1hr. Timeout should be 1ns (min of 1ns and 1hr) and the rpc will
182
+
// wait until deadline exceeds.
181
183
mc:= grpc.MethodConfig{
182
184
Timeout: newDuration(time.Hour),
183
185
}
@@ -192,19 +194,21 @@ func testServiceConfigTimeoutTD(t *testing.T, e env) {
192
194
cc:=te.clientConn()
193
195
tc:=testgrpc.NewTestServiceClient(cc)
194
196
// The following RPCs are expected to become non-fail-fast ones with 1ns deadline.
// Case2: Client API sets timeout to be 1hr and ServiceConfig sets timeout to be 1ns. Timeout should be 1ns (min of 1ns and 1hr) and the rpc will wait until deadline exceeds.
209
+
// Case2: Client API sets timeout to be the default and ServiceConfig sets
210
+
// timeout to be 1ns. Timeout should be 1ns (min of 1ns and the default)
211
+
// and the rpc will wait until deadline exceeds.
208
212
mc.Timeout=newDuration(time.Nanosecond)
209
213
m=make(map[string]grpc.MethodConfig)
210
214
m["/grpc.testing.TestService/EmptyCall"] =mc
@@ -217,7 +221,7 @@ func testServiceConfigTimeoutTD(t *testing.T, e env) {
217
221
// Wait for the new service config to take effect.
0 commit comments