diff --git a/clientv3/balancer_test.go b/clientv3/balancer_test.go index 1ac6154d1..f6394344d 100644 --- a/clientv3/balancer_test.go +++ b/clientv3/balancer_test.go @@ -40,7 +40,7 @@ func TestBalancerGetUnblocking(t *testing.T) { down2 := sb.Up(grpc.Address{Addr: endpoints[2]}) addrFirst, putFun, err := sb.Get(context.Background(), unblockingOpts) if err != nil { - t.Errorf("Get() with up endpoints should sucess, got %v", err) + t.Errorf("Get() with up endpoints should success, got %v", err) } if addrFirst.Addr != endpoints[1] && addrFirst.Addr != endpoints[2] { t.Errorf("Get() didn't return expected address, got %v", addrFirst) @@ -80,7 +80,7 @@ func TestBalancerGetBlocking(t *testing.T) { }() addrFirst, putFun, err := sb.Get(context.Background(), blockingOpts) if err != nil { - t.Errorf("Get() with up endpoints should sucess, got %v", err) + t.Errorf("Get() with up endpoints should success, got %v", err) } if addrFirst.Addr != endpoints[1] { t.Errorf("Get() didn't return expected address, got %v", addrFirst) diff --git a/etcdserver/server_test.go b/etcdserver/server_test.go index 22d59d77f..3bdb47b1f 100644 --- a/etcdserver/server_test.go +++ b/etcdserver/server_test.go @@ -1243,7 +1243,7 @@ func TestPublishRetry(t *testing.T) { t.Errorf("len(action) = %d, want >= 2 (%v)", len(action), err) } close(srv.stopping) - // drain remaing actions, if any, so publish can terminate + // drain remaining actions, if any, so publish can terminate for { select { case <-ch: diff --git a/tools/functional-tester/etcd-runner/watcher.go b/tools/functional-tester/etcd-runner/watcher.go index 063eaf12b..492838384 100644 --- a/tools/functional-tester/etcd-runner/watcher.go +++ b/tools/functional-tester/etcd-runner/watcher.go @@ -56,7 +56,7 @@ func performWatchOnPrefixes(ctx context.Context, getClient getClientFunc, round defer client.Close() // get revision using get request - gr = getWithRetry(client, ctx, "non-existant") + gr = getWithRetry(client, ctx, "non-existent") revision = gr.Header.Revision ctxt, cancel := context.WithDeadline(ctx, time.Now().Add(runningTime)) diff --git a/tools/functional-tester/etcd-tester/lease_stresser.go b/tools/functional-tester/etcd-tester/lease_stresser.go index 9538c72c2..718d8e9c5 100644 --- a/tools/functional-tester/etcd-tester/lease_stresser.go +++ b/tools/functional-tester/etcd-tester/lease_stresser.go @@ -272,7 +272,7 @@ func (ls *leaseStresser) randomlyDropLeases() { defer wg.Done() dropped, err := ls.randomlyDropLease(leaseID) // if randomlyDropLease encountered an error such as context is cancelled, remove the lease from aliveLeases - // becasue we can't tell whether the lease is dropped or not. + // because we can't tell whether the lease is dropped or not. if err != nil { plog.Debugf("drop lease %v has failed error (%v)", leaseID, err) ls.aliveLeases.remove(leaseID)