소스 검색

relax the ccm test discovery test

Chris Bannister 10 년 전
부모
커밋
d436c34598
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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: