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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user