Skip to content

Commit

Permalink
Merge pull request #14594 from ZoeShaw101/fix-watch-test-issue-3.4
Browse files Browse the repository at this point in the history
Backport #14591 to 3.4.
  • Loading branch information
ahrtr authored Oct 16, 2022
2 parents 5b764d8 + dcebdf7 commit b058374
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clientv3/integration/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,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 b058374

Please sign in to comment.