浏览代码

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: