@@ -39,11 +39,12 @@ func createTestSetup(t *testing.T) (workceptor.WorkUnit, *mock_workceptor.MockBa
39
39
cwc := & workceptor.CommandWorkerCfg {}
40
40
mockBaseWorkUnit .EXPECT ().Init (w , "" , "" , workceptor.FileSystem {}, nil )
41
41
workUnit := cwc .NewWorker (mockBaseWorkUnit , w , "" , "" )
42
+
42
43
return workUnit , mockBaseWorkUnit , mockNetceptor , ctrl , w
43
44
}
44
45
45
46
func TestCommandSetFromParams (t * testing.T ) {
46
- wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) // nolint:dogsled
47
+ wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) //nolint:dogsled
47
48
48
49
paramsTestCases := []struct {
49
50
name string
@@ -88,7 +89,7 @@ func TestCommandSetFromParams(t *testing.T) {
88
89
}
89
90
90
91
func TestUnredactedStatus (t * testing.T ) {
91
- wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) // nolint:dogsled
92
+ wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) //nolint:dogsled
92
93
statusLock := & sync.RWMutex {}
93
94
mockBaseWorkUnit .EXPECT ().GetStatusLock ().Return (statusLock ).Times (2 )
94
95
mockBaseWorkUnit .EXPECT ().GetStatusWithoutExtraData ().Return (& workceptor.StatusFileData {})
@@ -115,7 +116,7 @@ func TestStart(t *testing.T) {
115
116
}
116
117
117
118
func TestRestart (t * testing.T ) {
118
- wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) // nolint:dogsled
119
+ wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) //nolint:dogsled
119
120
120
121
restartTestCases := []struct {
121
122
name string
@@ -184,7 +185,7 @@ func TestRestart(t *testing.T) {
184
185
}
185
186
186
187
func TestCancel (t * testing.T ) {
187
- wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) // nolint:dogsled
188
+ wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) //nolint:dogsled
188
189
189
190
paramsTestCases := []struct {
190
191
name string
@@ -294,7 +295,7 @@ func TestCancel(t *testing.T) {
294
295
}
295
296
296
297
func TestRelease (t * testing.T ) {
297
- wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) // nolint:dogsled
298
+ wu , mockBaseWorkUnit , _ , _ , _ := createTestSetup (t ) //nolint:dogsled
298
299
299
300
releaseTestCases := []struct {
300
301
name string
0 commit comments