Skip to content

Commit afb62d2

Browse files
committed
ClientV3: Add integration test for server timeout
Partially Fixes etcd-io#8645
1 parent fdbaaa6 commit afb62d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clientv3/integration/black_hole_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ import (
3232

3333
// TestServerGRPCKeepAliveTimeout tests ServerParameters keepalive ping on server-side that
3434
// after having pinged for keepalive check, the server waits for a duration of Timeout and
35-
// if no activity is seen even after that the connection is closed. The keepalive takes few
36-
// seconds to get in impact so typically the the time it takes to close the connection is
37-
// somewhat higher than specified Timeout value.
35+
// if no activity is seen even after that the connection is closed on server-side. The keepalive
36+
// takes few extra seconds to get in impact so typically the time it takes to close the connection
37+
// is somewhat higher than specified Timeout value.
3838
func TestServerGRPCKeepAliveTimeout(t *testing.T) {
3939
defer testutil.AfterTest(t)
4040

4141
clus := integration.NewClusterV3(t, &integration.ClusterConfig{
4242
Size: 2,
43-
GRPCKeepAliveInterval: time.Second,
44-
GRPCKeepAliveTimeout: time.Second,
43+
GRPCKeepAliveInterval: 500 * time.Millisecond,
44+
GRPCKeepAliveTimeout: 500 * time.Millisecond,
4545
})
4646
defer clus.Terminate(t)
4747

0 commit comments

Comments
 (0)