File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,12 @@ func TestUnredactedStatus(t *testing.T) {
96
96
}{
97
97
{name : "test1" },
98
98
{name : "test2" },
99
- {name : "test3" },
100
99
}
101
100
101
+ statusLock := & sync.RWMutex {}
102
102
for _ , testCase := range restartTestCases {
103
103
t .Run (testCase .name , func (t * testing.T ) {
104
104
t .Parallel ()
105
- statusLock := & sync.RWMutex {}
106
105
mockBaseWorkUnit .EXPECT ().GetStatusLock ().Return (statusLock ).Times (2 )
107
106
mockBaseWorkUnit .EXPECT ().GetStatusWithoutExtraData ().Return (& workceptor.StatusFileData {})
108
107
mockBaseWorkUnit .EXPECT ().GetStatusCopy ().Return (workceptor.StatusFileData {
Original file line number Diff line number Diff line change @@ -39,13 +39,12 @@ func TestRemoteWorkUnredactedStatus(t *testing.T) {
39
39
}{
40
40
{name : "test1" },
41
41
{name : "test2" },
42
- {name : "test3" },
43
42
}
44
43
44
+ statusLock := & sync.RWMutex {}
45
45
for _ , testCase := range restartTestCases {
46
46
t .Run (testCase .name , func (t * testing.T ) {
47
47
t .Parallel ()
48
- statusLock := & sync.RWMutex {}
49
48
mockBaseWorkUnit .EXPECT ().GetStatusLock ().Return (statusLock ).Times (2 )
50
49
mockBaseWorkUnit .EXPECT ().GetStatusWithoutExtraData ().Return (& workceptor.StatusFileData {})
51
50
mockBaseWorkUnit .EXPECT ().GetStatusCopy ().Return (workceptor.StatusFileData {
You can’t perform that action at this time.
0 commit comments