Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
resoluteCoder committed Jan 12, 2024
1 parent 628ba7f commit c10b8cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pkg/workceptor/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
3 changes: 1 addition & 2 deletions pkg/workceptor/remote_work_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit c10b8cb

Please sign in to comment.