Fix error message in Test{Plan,Run,Validate}Command_From_URL

This commit is contained in:
Kenjiro Nakayama
2016-08-17 13:28:17 +09:00
parent 5edc9d1072
commit 7e1cc0599a
3 changed files with 6 additions and 6 deletions

View File

@@ -156,7 +156,7 @@ func TestPlanCommand_From_URL(t *testing.T) {
t.Fatalf("expected exit code 1, got %d: %q", code, ui.ErrorWriter.String())
}
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error reading URL") {
t.Fatalf("expected runtime error, got: %s", out)
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error getting jobfile") {
t.Fatalf("expected error getting jobfile, got: %s", out)
}
}

View File

@@ -202,7 +202,7 @@ func TestRunCommand_From_URL(t *testing.T) {
t.Fatalf("expected exit code 1, got %d: %q", code, ui.ErrorWriter.String())
}
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error reading URL") {
t.Fatalf("expected runtime error, got: %s", out)
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error getting jobfile") {
t.Fatalf("expected error getting jobfile, got: %s", out)
}
}

View File

@@ -153,7 +153,7 @@ func TestValidateCommand_From_URL(t *testing.T) {
t.Fatalf("expected exit code 1, got %d: %q", code, ui.ErrorWriter.String())
}
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error reading URL") {
t.Fatalf("expected runtime error, got: %s", out)
if out := ui.ErrorWriter.String(); !strings.Contains(out, "Error getting jobfile") {
t.Fatalf("expected error getting jobfile, got: %s", out)
}
}