Skip to content

Commit 7553e1c

Browse files
committed
lint
1 parent b14948e commit 7553e1c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pkg/workceptor/command_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ func createTestSetup(t *testing.T) (workceptor.WorkUnit, *mock_workceptor.MockBa
3939
cwc := &workceptor.CommandWorkerCfg{}
4040
mockBaseWorkUnit.EXPECT().Init(w, "", "", workceptor.FileSystem{}, nil)
4141
workUnit := cwc.NewWorker(mockBaseWorkUnit, w, "", "")
42+
4243
return workUnit, mockBaseWorkUnit, mockNetceptor, ctrl, w
4344
}
4445

4546
func TestCommandSetFromParams(t *testing.T) {
46-
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) // nolint:dogsled
47+
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) //nolint:dogsled
4748

4849
paramsTestCases := []struct {
4950
name string
@@ -88,7 +89,7 @@ func TestCommandSetFromParams(t *testing.T) {
8889
}
8990

9091
func TestUnredactedStatus(t *testing.T) {
91-
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) // nolint:dogsled
92+
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) //nolint:dogsled
9293
statusLock := &sync.RWMutex{}
9394
mockBaseWorkUnit.EXPECT().GetStatusLock().Return(statusLock).Times(2)
9495
mockBaseWorkUnit.EXPECT().GetStatusWithoutExtraData().Return(&workceptor.StatusFileData{})
@@ -115,7 +116,7 @@ func TestStart(t *testing.T) {
115116
}
116117

117118
func TestRestart(t *testing.T) {
118-
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) // nolint:dogsled
119+
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) //nolint:dogsled
119120

120121
restartTestCases := []struct {
121122
name string
@@ -184,7 +185,7 @@ func TestRestart(t *testing.T) {
184185
}
185186

186187
func TestCancel(t *testing.T) {
187-
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) // nolint:dogsled
188+
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) //nolint:dogsled
188189

189190
paramsTestCases := []struct {
190191
name string
@@ -294,7 +295,7 @@ func TestCancel(t *testing.T) {
294295
}
295296

296297
func TestRelease(t *testing.T) {
297-
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) // nolint:dogsled
298+
wu, mockBaseWorkUnit, _, _, _ := createTestSetup(t) //nolint:dogsled
298299

299300
releaseTestCases := []struct {
300301
name string

0 commit comments

Comments
 (0)