mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: fix TestTriggerSnap
Before checking, it needs to wait for snapshot goroutine to finish its work.
This commit is contained in:
parent
44fda7985a
commit
5d131acfba
@ -748,6 +748,8 @@ func TestTriggerSnap(t *testing.T) {
|
||||
srv.Do(context.Background(), pb.Request{Method: "PUT"})
|
||||
}
|
||||
srv.Stop()
|
||||
// wait for snapshot goroutine to finish
|
||||
testutil.WaitSchedule()
|
||||
|
||||
gaction := p.Action()
|
||||
// each operation is recorded as a Save
|
||||
|
Loading…
x
Reference in New Issue
Block a user