Procházet zdrojové kódy

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

etcdserver: fix TestTriggerSnap
Xiang Li před 10 roky
rodič
revize
35d0839909
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      etcdserver/server_test.go

+ 2 - 0
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