Skip to content

Commit a31a72d

Browse files
committed
more stuff
1 parent b6d7785 commit a31a72d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/workceptor/command_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,12 @@ func TestUnredactedStatus(t *testing.T) {
9696
}{
9797
{name: "test1"},
9898
{name: "test2"},
99-
{name: "test3"},
10099
}
101100

101+
statusLock := &sync.RWMutex{}
102102
for _, testCase := range restartTestCases {
103103
t.Run(testCase.name, func(t *testing.T) {
104104
t.Parallel()
105-
statusLock := &sync.RWMutex{}
106105
mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2)
107106
mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{})
108107
mockBaseWorkUnit.EXPECT().GetStatusCopy().Return(workceptor.StatusFileData{

pkg/workceptor/remote_work_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ func TestRemoteWorkUnredactedStatus(t *testing.T) {
3939
}{
4040
{name: "test1"},
4141
{name: "test2"},
42-
{name: "test3"},
4342
}
4443

44+
statusLock := &sync.RWMutex{}
4545
for _, testCase := range restartTestCases {
4646
t.Run(testCase.name, func(t *testing.T) {
4747
t.Parallel()
48-
statusLock := &sync.RWMutex{}
4948
mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2)
5049
mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{})
5150
mockBaseWorkUnit.EXPECT().GetStatusCopy().Return(workceptor.StatusFileData{

0 commit comments

Comments
 (0)