diff --git a/etcdserver/server_test.go b/etcdserver/server_test.go index d5f481e7a..71c4b4ea8 100644 --- a/etcdserver/server_test.go +++ b/etcdserver/server_test.go @@ -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