mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 09:55:44 +03:00
Fix error message in Test{Plan,Run,Validate}Command_From_URL
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user