From c10b8cba84a0613e6a20c4f212e36527ba81ce7b Mon Sep 17 00:00:00 2001 From: resoluteCoder Date: Fri, 12 Jan 2024 13:40:09 -0600 Subject: [PATCH] more stuff --- pkg/workceptor/command_test.go | 3 +-- pkg/workceptor/remote_work_test.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/workceptor/command_test.go b/pkg/workceptor/command_test.go index 36a4c7c1e..813dfaf27 100644 --- a/pkg/workceptor/command_test.go +++ b/pkg/workceptor/command_test.go @@ -96,13 +96,12 @@ func TestUnredactedStatus(t *testing.T) { }{ {name: "test1"}, {name: "test2"}, - {name: "test3"}, } + statusLock := &sync.RWMutex{} for _, testCase := range restartTestCases { t.Run(testCase.name, func(t *testing.T) { t.Parallel() - statusLock := &sync.RWMutex{} mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2) mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{}) mockBaseWorkUnit.EXPECT().GetStatusCopy().Return(workceptor.StatusFileData{ diff --git a/pkg/workceptor/remote_work_test.go b/pkg/workceptor/remote_work_test.go index 249ae6dbe..1f1e1fa01 100644 --- a/pkg/workceptor/remote_work_test.go +++ b/pkg/workceptor/remote_work_test.go @@ -39,13 +39,12 @@ func TestRemoteWorkUnredactedStatus(t *testing.T) { }{ {name: "test1"}, {name: "test2"}, - {name: "test3"}, } + statusLock := &sync.RWMutex{} for _, testCase := range restartTestCases { t.Run(testCase.name, func(t *testing.T) { t.Parallel() - statusLock := &sync.RWMutex{} mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2) mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{}) mockBaseWorkUnit.EXPECT().GetStatusCopy().Return(workceptor.StatusFileData{