Skip to content

Commit a08437f

Browse files
authored
Switch to DialContext() to address lint issue (#530)
1 parent e3d4843 commit a08437f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ func TestStreamStats(t *testing.T) {
850850
}
851851

852852
// make connection so we have stream server zone stats - ignore response
853-
_, err = net.Dial("tcp", helpers.GetStreamAddress())
853+
d := &net.Dialer{}
854+
_, err = d.DialContext(context.Background(), "tcp", helpers.GetStreamAddress())
854855
if err != nil {
855856
t.Errorf("Error making tcp connection: %v", err)
856857
}

0 commit comments

Comments
 (0)