Переглянути джерело

Merge pull request #6763 from gyuho/spell

*: fix minor typos
Gyu-Ho Lee 9 роки тому
батько
коміт
30d37b2165

+ 2 - 2
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)

+ 1 - 1
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:

+ 1 - 1
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))

+ 1 - 1
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)