1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 16:21:07 +00:00

Fix go test for ssh port and listen_address config

This commit is contained in:
niusmallnan
2018-03-05 16:29:31 +08:00
committed by niusmallnan
parent 67961c9349
commit 9c9c3ce141
2 changed files with 4 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ func testValidate(t *testing.T, cfg []byte, contains string) {
t.Fatal(err)
}
if contains == "" && len(validationErrors.Errors()) != 0 {
fmt.Printf("validationErrors: %v", validationErrors.Errors())
t.Fail()
}
if !strings.Contains(fmt.Sprint(validationErrors.Errors()), contains) {