From d78f6f7f14e3f42ec8c9f46eccfe8a66c7a42091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=9C=84=E9=9C=84?= <1141195807@qq.com> Date: Sat, 15 Oct 2022 22:16:28 +0800 Subject: [PATCH] Backport #14591 to 3.5. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王霄霄 <1141195807@qq.com> --- tests/integration/clientv3/watch_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration/clientv3/watch_test.go b/tests/integration/clientv3/watch_test.go index 7a992ecf974..e4474c23c48 100644 --- a/tests/integration/clientv3/watch_test.go +++ b/tests/integration/clientv3/watch_test.go @@ -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) }