Skip to content

Commit

Permalink
Backport etcd-io#14591 to 3.5.
Browse files Browse the repository at this point in the history
Signed-off-by: 王霄霄 <1141195807@qq.com>
  • Loading branch information
halegreen committed Oct 16, 2022
1 parent fed325a commit d78f6f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/integration/clientv3/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ func putAndWatch(t *testing.T, wctx *watchctx, key, val string) {
if !ok {
t.Fatalf("unexpected watch close")
}
if err := v.Err(); err != nil {
t.Fatalf("unexpected watch response error: %v", err)
}
if string(v.Events[0].Kv.Value) != val {
t.Fatalf("bad value got %v, wanted %v", v.Events[0].Kv.Value, val)
}
Expand Down

0 comments on commit d78f6f7

Please sign in to comment.