Parcourir la source

Fix server start detection for Redis 4

bits01 il y a 8 ans
Parent
commit
9e66b83d15
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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
 			}