Skip to content

Commit 5b45c70

Browse files
committed
Fix lint
1 parent a8d149f commit 5b45c70

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

pkg/workceptor/workceptor_test.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -312,51 +312,51 @@ func TestAllocateRemoteUnit(t *testing.T) {
312312
expectedCalls func()
313313
}{
314314
{
315-
name: "get client tls config error",
315+
name: "get client tls config error",
316316
workUnitID: "",
317-
tlsClient: "something",
318-
errorMsg: "terminated",
317+
tlsClient: "something",
318+
errorMsg: "terminated",
319319
expectedCalls: func() {
320320
mockNetceptor.EXPECT().GetClientTLSConfig(gomock.Any(), gomock.Any(), gomock.Any()).Return(&tls.Config{}, errors.New("terminated"))
321321
},
322322
},
323323
{
324-
name: "sending secrets over non tls connection error",
324+
name: "sending secrets over non tls connection error",
325325
workUnitID: "",
326-
tlsClient: "",
327-
params: map[string]string{"secret_": "secret"},
328-
errorMsg: "cannot send secrets over a non-TLS connection",
326+
tlsClient: "",
327+
params: map[string]string{"secret_": "secret"},
328+
errorMsg: "cannot send secrets over a non-TLS connection",
329329
expectedCalls: func() {
330330
// For testing purposes
331331
},
332332
},
333333
{
334-
name: "invalid duration error",
334+
name: "invalid duration error",
335335
workUnitID: "",
336-
tlsClient: "",
337-
ttl: "ttl",
338-
errorMsg: "time: invalid duration \"ttl\"",
336+
tlsClient: "",
337+
ttl: "ttl",
338+
errorMsg: "time: invalid duration \"ttl\"",
339339
expectedCalls: func() {
340340
// For testing purposes
341341
},
342342
},
343343
{
344-
name: "normal case",
344+
name: "normal case",
345345
workUnitID: "",
346-
tlsClient: "",
347-
ttl: "1.5h",
348-
errorMsg: "",
349-
signWork: true,
346+
tlsClient: "",
347+
ttl: "1.5h",
348+
errorMsg: "",
349+
signWork: true,
350350
expectedCalls: func() {
351351
// For testing purposes
352352
},
353353
},
354354
{
355-
name: "pass workUnitID",
355+
name: "pass workUnitID",
356356
workUnitID: "testID12345678",
357-
tlsClient: "",
358-
ttl: "1.5h",
359-
errorMsg: "",
357+
tlsClient: "",
358+
ttl: "1.5h",
359+
errorMsg: "",
360360
signWork: true,
361361
expectedCalls: func() {
362362
// For testing purposes

0 commit comments

Comments
 (0)