Explorar o código

clientv3: check IsModify

Fix watch_test.go TestEvent

Prior to This fix the isModify case of the table driven test was never checked.
Luediger Reinhard %!s(int64=8) %!d(string=hai) anos
pai
achega
8b081ce9b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      clientv3/watch_test.go

+ 1 - 1
clientv3/watch_test.go

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