mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #4890 from heyitsanthony/fix-4889
clientv3/integration: get quorum before watching in TestKVCompact
This commit is contained in:
commit
1637b37132
@ -347,7 +347,11 @@ func TestKVCompact(t *testing.T) {
|
||||
t.Fatalf("error got %v, want %v", err, rpctypes.ErrFutureRev)
|
||||
}
|
||||
|
||||
wc := clientv3.NewWatcher(clus.RandClient())
|
||||
wcli := clus.RandClient()
|
||||
// new watcher could precede receiving the compaction without quorum first
|
||||
wcli.Get(ctx, "quorum-get")
|
||||
|
||||
wc := clientv3.NewWatcher(wcli)
|
||||
defer wc.Close()
|
||||
wchan := wc.Watch(ctx, "foo", clientv3.WithRev(3))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user