diff --git a/transport/internet/sockopt_linux_test.go b/transport/internet/sockopt_linux_test.go index 9c0ea6ce..f9be0d6b 100644 --- a/transport/internet/sockopt_linux_test.go +++ b/transport/internet/sockopt_linux_test.go @@ -24,14 +24,12 @@ func TestSockOptMark(t *testing.T) { defer tcpServer.Close() const mark = 1 - ctx := context.Background() - ctx = ContextWithStreamSettings(ctx, &MemoryStreamConfig{ + dialer := DefaultSystemDialer{} + conn, err := dialer.Dial(context.Background(), nil, dest, &MemoryStreamConfig{ SocketSettings: &SocketConfig{ Mark: mark, }, }) - dialer := DefaultSystemDialer{} - conn, err := dialer.Dial(ctx, nil, dest) common.Must(err) defer conn.Close()