Skip to content

Commit 60a122a

Browse files
authored
Update proxy_test.go
1 parent bd9c02b commit 60a122a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

middleware/proxy/proxy_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ func createRedirectServer(t *testing.T) string {
7070

7171
ln, err := net.Listen(fiber.NetworkTCP4, "127.0.0.1:0")
7272
require.NoError(t, err)
73-
t.Cleanup(func() { ln.Close() })
73+
t.Cleanup(func() {
74+
ln.Close() //nolint:errcheck // It is fine to ignore the error here
75+
})
7476
addr = ln.Addr().String()
7577

7678
startServer(app, ln)

0 commit comments

Comments
 (0)