Browse Source

clientv3/integration: use clientv3 event types

Fix https://github.com/coreos/etcd/issues/5001.
Gyu-Ho Lee 9 years ago
parent
commit
a9f1d5dfa6
1 changed files with 1 additions and 1 deletions
  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)