Procházet zdrojové kódy

Fix server start detection for Redis 4

bits01 před 8 roky
rodič
revize
9e66b83d15
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      redis/test_test.go

+ 2 - 1
redis/test_test.go

@@ -96,7 +96,8 @@ func (s *Server) watch(r io.Reader, ready chan error) {
 		text = scn.Text()
 		fmt.Fprintf(serverLog, "%s\n", text)
 		if !listening {
-			if strings.Contains(text, "The server is now ready to accept connections on port") {
+			if strings.Contains(text, " * Ready to accept connections") ||
+				strings.Contains(text, " * The server is now ready to accept connections on port") {
 				listening = true
 				ready <- nil
 			}