Skip to content

Commit

Permalink
ClientV3: Add integration test for server timeout
Browse files Browse the repository at this point in the history
Partially Fixes etcd-io#8645
  • Loading branch information
spzala committed Nov 30, 2018
1 parent 3f6d508 commit e48af62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clientv3/integration/black_hole_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ import (

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

clus := integration.NewClusterV3(t, &integration.ClusterConfig{
Size: 2,
GRPCKeepAliveInterval: time.Second,
GRPCKeepAliveTimeout: time.Second,
GRPCKeepAliveInterval: 500 * time.Millisecond,
GRPCKeepAliveTimeout: 500 * time.Millisecond,
})
defer clus.Terminate(t)

Expand Down

0 comments on commit e48af62

Please sign in to comment.