mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #17809 from coderwander/main
tests: fix some typos in comments
This commit is contained in:
commit
d435284457
@ -47,7 +47,7 @@ func TestKVPut(t *testing.T) {
|
|||||||
t.Fatalf("count not get key %q, err: %s", key, err)
|
t.Fatalf("count not get key %q, err: %s", key, err)
|
||||||
}
|
}
|
||||||
if len(resp.Kvs) != 1 {
|
if len(resp.Kvs) != 1 {
|
||||||
t.Errorf("Unexpected lenth of response, got %d", len(resp.Kvs))
|
t.Errorf("Unexpected length of response, got %d", len(resp.Kvs))
|
||||||
}
|
}
|
||||||
if string(resp.Kvs[0].Key) != key {
|
if string(resp.Kvs[0].Key) != key {
|
||||||
t.Errorf("Unexpected key, want %q, got %q", key, resp.Kvs[0].Key)
|
t.Errorf("Unexpected key, want %q, got %q", key, resp.Kvs[0].Key)
|
||||||
@ -234,7 +234,7 @@ func TestKVGetNoQuorum(t *testing.T) {
|
|||||||
_, err := cc.Get(ctx, key, tc.options)
|
_, err := cc.Get(ctx, key, tc.options)
|
||||||
gotError := err != nil
|
gotError := err != nil
|
||||||
if gotError != tc.wantError {
|
if gotError != tc.wantError {
|
||||||
t.Fatalf("Unexpeted result, wantError: %v, gotErr: %v, err: %s", tc.wantError, gotError, err)
|
t.Fatalf("Unexpected result, wantError: %v, gotErr: %v, err: %s", tc.wantError, gotError, err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -88,7 +88,7 @@ func TestDetectKvOrderViolation(t *testing.T) {
|
|||||||
|
|
||||||
t.Logf("Quering m2 after restart")
|
t.Logf("Quering m2 after restart")
|
||||||
v, err = orderingKv.Get(ctx, "foo", clientv3.WithSerializable())
|
v, err = orderingKv.Get(ctx, "foo", clientv3.WithSerializable())
|
||||||
t.Logf("Quering m2 returned: v:%v erro:%v ", v, err)
|
t.Logf("Quering m2 returned: v:%v err:%v ", v, err)
|
||||||
if err != errOrderViolation {
|
if err != errOrderViolation {
|
||||||
t.Fatalf("expected %v, got err:%v v:%v", errOrderViolation, err, v)
|
t.Fatalf("expected %v, got err:%v v:%v", errOrderViolation, err, v)
|
||||||
}
|
}
|
||||||
|
@ -171,7 +171,7 @@ func TestV3WatchFromCurrentRevision(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"multiple puts, one watcher with matching perfix",
|
"multiple puts, one watcher with matching prefix",
|
||||||
[]string{"foo", "foo", "foo"},
|
[]string{"foo", "foo", "foo"},
|
||||||
&pb.WatchRequest{RequestUnion: &pb.WatchRequest_CreateRequest{
|
&pb.WatchRequest{RequestUnion: &pb.WatchRequest_CreateRequest{
|
||||||
CreateRequest: &pb.WatchCreateRequest{
|
CreateRequest: &pb.WatchCreateRequest{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user