From 7e1cc0599afe1e1ce1bd2b03fe4c72907b29d80d Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 17 Aug 2016 13:28:17 +0900 Subject: [PATCH] Fix error message in Test{Plan,Run,Validate}Command_From_URL --- command/plan_test.go | 4 ++-- command/run_test.go | 4 ++-- command/validate_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/command/plan_test.go b/command/plan_test.go index 90dac183e..4cdc15ceb 100644 --- a/command/plan_test.go +++ b/command/plan_test.go @@ -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) } } diff --git a/command/run_test.go b/command/run_test.go index b4514efac..5c8dc10dc 100644 --- a/command/run_test.go +++ b/command/run_test.go @@ -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) } } diff --git a/command/validate_test.go b/command/validate_test.go index 308980274..a3f3b7916 100644 --- a/command/validate_test.go +++ b/command/validate_test.go @@ -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) } }