From 2a49b04f095203aab88fc3f28fcf21aab72f7f68 Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Mon, 23 Oct 2017 20:13:09 -0700 Subject: [PATCH] clientv3/integration: fix typos Signed-off-by: Gyu-Ho Lee --- clientv3/integration/network_partition_test.go | 4 ++-- clientv3/integration/watch_keepalive_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clientv3/integration/network_partition_test.go b/clientv3/integration/network_partition_test.go index 9faa3824f..d2f3b7735 100644 --- a/clientv3/integration/network_partition_test.go +++ b/clientv3/integration/network_partition_test.go @@ -80,8 +80,8 @@ func testNetworkPartitionBalancer(t *testing.T, op func(*clientv3.Client, contex if err == nil { break } - // todo: separate put and get test for error checking. - // we do not really expect errTimeout on get. + // TODO: separate put and get test for error checking. + // we do not really expect ErrTimeout on get. if err != context.DeadlineExceeded && err != rpctypes.ErrTimeout { t.Errorf("#%d: expected %v or %v, got %v", i, context.DeadlineExceeded, rpctypes.ErrTimeout, err) } diff --git a/clientv3/integration/watch_keepalive_test.go b/clientv3/integration/watch_keepalive_test.go index b79ffb01e..5566f0cb8 100644 --- a/clientv3/integration/watch_keepalive_test.go +++ b/clientv3/integration/watch_keepalive_test.go @@ -46,7 +46,7 @@ func TestWatchKeepAlive(t *testing.T) { DialKeepAliveTimeout: 500 * time.Millisecond, } - // gRPC internal implmentation related. + // gRPC internal implementation related. pingInterval := ccfg.DialKeepAliveTime + ccfg.DialKeepAliveTimeout timeout := pingInterval + 2*time.Second // 2s for slow machine to process watch and reset connections