Skip to content

Commit

Permalink
integration: check Canceled is true in compacted watch response
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Romano committed Jul 19, 2017
1 parent 608df0f commit c6277bd
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 @@ -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 {
Expand Down

0 comments on commit c6277bd

Please sign in to comment.