Procházet zdrojové kódy

relax the ccm test discovery test

Chris Bannister před 10 roky
rodič
revize
d436c34598
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      ccm_test/ccm.go

+ 2 - 2
ccm_test/ccm.go

@@ -106,8 +106,8 @@ func Status() (map[string]Host, error) {
 			state = stateCommas
 		case stateCommas:
 			text := sc.Text()
-			if text != "----------------" {
-				return nil, fmt.Errorf("expected '----------------' got %q", text)
+			if strings.HasPrefix(text, "-") {
+				return nil, fmt.Errorf("expected commas got %q", text)
 			}
 			state = stateNode
 		case stateNode: