Merge pull request #3057 from yichengq/fix-snap-test

etcdserver: fix TestTriggerSnap
This commit is contained in:
Xiang Li 2015-06-25 10:51:36 -07:00
commit 35d0839909

View File

@ -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