mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: check Canceled is true in compacted watch response
This commit is contained in:
parent
d2654f8522
commit
ebcfdd1a3d
@ -514,6 +514,9 @@ func TestWatchCompactRevision(t *testing.T) {
|
|||||||
if wresp.Err() != rpctypes.ErrCompacted {
|
if wresp.Err() != rpctypes.ErrCompacted {
|
||||||
t.Fatalf("wresp.Err() expected %v, but got %v", rpctypes.ErrCompacted, wresp.Err())
|
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
|
// ensure the channel is closed
|
||||||
if wresp, ok = <-wch; ok {
|
if wresp, ok = <-wch; ok {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user