From ebcfdd1a3d1f368abc46d94aed208ed8d93ccf4f Mon Sep 17 00:00:00 2001 From: Anthony Romano Date: Wed, 19 Jul 2017 12:53:39 -0700 Subject: [PATCH] integration: check Canceled is true in compacted watch response --- clientv3/integration/watch_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientv3/integration/watch_test.go b/clientv3/integration/watch_test.go index 4c9f14757..e36f9a9a8 100644 --- a/clientv3/integration/watch_test.go +++ b/clientv3/integration/watch_test.go @@ -514,6 +514,9 @@ func TestWatchCompactRevision(t *testing.T) { if wresp.Err() != rpctypes.ErrCompacted { t.Fatalf("wresp.Err() expected %v, but got %v", rpctypes.ErrCompacted, wresp.Err()) } + if !wresp.Canceled { + t.Fatalf("wresp.Canceled expected true, got %+v", wresp) + } // ensure the channel is closed if wresp, ok = <-wch; ok {