Explorar o código

clientv3/integration: use clientv3 event types

Fix https://github.com/coreos/etcd/issues/5001.
Gyu-Ho Lee %!s(int64=9) %!d(string=hai) anos
pai
achega
a9f1d5dfa6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      clientv3/integration/watch_test.go

+ 1 - 1
clientv3/integration/watch_test.go

@@ -418,7 +418,7 @@ func testWatchWithProgressNotify(t *testing.T, watchOnPut bool) {
 			t.Fatalf("resp.Header.Revision expected 2, got %d", resp.Header.Revision)
 		}
 		if watchOnPut { // wait for put if watch on the put key
-			ev := []*storagepb.Event{{Type: storagepb.PUT,
+			ev := []*clientv3.Event{{Type: clientv3.EventTypePut,
 				Kv: &storagepb.KeyValue{Key: []byte("foox"), Value: []byte("bar"), CreateRevision: 2, ModRevision: 2, Version: 1}}}
 			if !reflect.DeepEqual(ev, resp.Events) {
 				t.Fatalf("expected %+v, got %+v", ev, resp.Events)