Ver Fonte

relax the ccm test discovery test

Chris Bannister há 10 anos atrás
pai
commit
d436c34598
1 ficheiros alterados com 2 adições e 2 exclusões
  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: