Skip to content

Commit 88f1bc0

Browse files
committed
lint: avoid some tests
Signed-off-by: Guilhem Lettron <[email protected]>
1 parent b6b99f6 commit 88f1bc0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

interceptor/middleware/responsewriter_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ import (
66
"net/http"
77
"net/http/httptest"
88

9-
"go.uber.org/mock/gomock"
10-
119
. "github.com/onsi/ginkgo/v2"
1210
. "github.com/onsi/gomega"
11+
"go.uber.org/mock/gomock"
1312
)
1413

1514
var _ = Describe("responseWriter", func() {

tests/checks/interceptor_websocket/interceptor_websocket_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ spec:
9898
periodSeconds: 20
9999
`
100100

101+
//nolint:unused
101102
websocketClientJobTemplate = `
102103
apiVersion: batch/v1
103104
kind: Job
@@ -266,6 +267,7 @@ func testWebSocketConnectionCurl(t *testing.T, kc *kubernetes.Clientset, data te
266267
KubectlDeleteWithTemplate(t, data, "websocatTestTemplate", websocatTestTemplate)
267268
}
268269

270+
//nolint:unused
269271
func testWebSocketScaleOut(t *testing.T, kc *kubernetes.Clientset, data templateData) {
270272
t.Log("--- testing WebSocket scale out ---")
271273

@@ -279,6 +281,7 @@ func testWebSocketScaleOut(t *testing.T, kc *kubernetes.Clientset, data template
279281
t.Log("WebSocket client successfully triggered scale out")
280282
}
281283

284+
//nolint:unused
282285
func testWebSocketScaleIn(t *testing.T, kc *kubernetes.Clientset, data templateData) {
283286
t.Log("--- testing WebSocket scale in ---")
284287

0 commit comments

Comments
 (0)