From 5d17666a698c4a533cedea593237077641a215f0 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:16:03 -0600 Subject: [PATCH] Update error messages in job creation tests --- pkg/cmd/agent-task/capi/job_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/agent-task/capi/job_test.go b/pkg/cmd/agent-task/capi/job_test.go index c64ecdfd3..4e14a28a6 100644 --- a/pkg/cmd/agent-task/capi/job_test.go +++ b/pkg/cmd/agent-task/capi/job_test.go @@ -368,7 +368,7 @@ func TestCreateJob(t *testing.T) { }`)), ) }, - wantErr: "failed to create job: some error", + wantErr: "failed to create job: 500 Internal Server Error: some error", }, { name: "API error", @@ -378,7 +378,7 @@ func TestCreateJob(t *testing.T) { httpmock.StatusStringResponse(500, `{}`), ) }, - wantErr: "failed to create job: 500 Internal Server Error", + wantErr: "failed to create job: 500 Internal Server Error: ", }, { name: "invalid JSON response, non-HTTP 200",