clientv3: check IsModify

Fix watch_test.go TestEvent

Prior to This fix the isModify case of the table driven test was never checked.
This commit is contained in:
Luediger Reinhard 2017-05-05 15:58:39 +02:00
parent 1f8de1aab0
commit 8b081ce9b3

View File

@ -42,7 +42,7 @@ func TestEvent(t *testing.T) {
ModRevision: 4,
},
},
isModify: false,
isModify: true,
}}
for i, tt := range tests {
if tt.isCreate && !tt.ev.IsCreate() {