mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
clientv3/integration: use clientv3 event types
Fix https://github.com/coreos/etcd/issues/5001.
This commit is contained in:
parent
8b320e7c55
commit
a9f1d5dfa6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user