From 936d320ca65de8a1522563f270870ce95dafbbbb Mon Sep 17 00:00:00 2001 From: Johan Brandhorst-Satzkorn Date: Fri, 24 Jan 2025 10:25:56 -0800 Subject: [PATCH] internal/scheduler/job: fix test failure (#5472) This was failing because the compared values weren't pointers. It was probably caused by a depedency version update changing the behavior of this function. --- internal/scheduler/job/repository_job_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/scheduler/job/repository_job_test.go b/internal/scheduler/job/repository_job_test.go index b2eb8c0848..7b77494c03 100644 --- a/internal/scheduler/job/repository_job_test.go +++ b/internal/scheduler/job/repository_job_test.go @@ -35,7 +35,7 @@ func TestRepository_UpsertJob(t *testing.T) { } tests := []struct { name string - in args + in *args want *Job wantErr bool wantErrCode errors.Code @@ -44,7 +44,7 @@ func TestRepository_UpsertJob(t *testing.T) { { name: "missing-name", wantErr: true, - in: args{ + in: &args{ description: "description", }, wantErrCode: errors.InvalidParameter, @@ -52,7 +52,7 @@ func TestRepository_UpsertJob(t *testing.T) { }, { name: "missing-description", - in: args{ + in: &args{ name: "name", }, wantErr: true, @@ -61,7 +61,7 @@ func TestRepository_UpsertJob(t *testing.T) { }, { name: "valid", - in: args{ + in: &args{ name: "name", description: "description", },