Browse Source

clientv3/integration: fix typos

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 8 years ago
parent
commit
7b4fc2601c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      clientv3/integration/black_hole_test.go
  2. 1 1
      clientv3/integration/dial_test.go

+ 1 - 1
clientv3/integration/black_hole_test.go

@@ -54,7 +54,7 @@ func TestBalancerUnderBlackholeKeepAliveWatch(t *testing.T) {
 	// TODO: only send healthy endpoint to gRPC so gRPC wont waste time to
 	// TODO: only send healthy endpoint to gRPC so gRPC wont waste time to
 	// dial for unhealthy endpoint.
 	// dial for unhealthy endpoint.
 	// then we can reduce 3s to 1s.
 	// then we can reduce 3s to 1s.
-	timeout := pingInterval + intergration.RequestWaitTimeout
+	timeout := pingInterval + integration.RequestWaitTimeout
 
 
 	cli, err := clientv3.New(ccfg)
 	cli, err := clientv3.New(ccfg)
 	if err != nil {
 	if err != nil {

+ 1 - 1
clientv3/integration/dial_test.go

@@ -121,7 +121,7 @@ func testDialSetEndpoints(t *testing.T, setBefore bool) {
 	if !setBefore {
 	if !setBefore {
 		cli.SetEndpoints(eps[toKill%3], eps[(toKill+1)%3])
 		cli.SetEndpoints(eps[toKill%3], eps[(toKill+1)%3])
 	}
 	}
-	ctx, cancel := context.WithTimeout(context.Background(), intergration.RequestWaitTimeout)
+	ctx, cancel := context.WithTimeout(context.Background(), integration.RequestWaitTimeout)
 	if _, err = cli.Get(ctx, "foo", clientv3.WithSerializable()); err != nil {
 	if _, err = cli.Get(ctx, "foo", clientv3.WithSerializable()); err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}