From e48af62da3e405fcf67212adb78f0ea72fbfdabc Mon Sep 17 00:00:00 2001 From: "Sahdev P. Zala" Date: Thu, 25 Oct 2018 09:20:04 -0400 Subject: [PATCH] ClientV3: Add integration test for server timeout Partially Fixes #8645 --- clientv3/integration/black_hole_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clientv3/integration/black_hole_test.go b/clientv3/integration/black_hole_test.go index a4102db85fe..be9bc51a54c 100644 --- a/clientv3/integration/black_hole_test.go +++ b/clientv3/integration/black_hole_test.go @@ -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)