clientv3/integration: use clientv3 event types

Fix https://github.com/coreos/etcd/issues/5001.
This commit is contained in:
Gyu-Ho Lee 2016-04-07 19:29:32 -07:00
parent 8b320e7c55
commit a9f1d5dfa6

View File

@ -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)