fix broken test

pull/1435/head
Darien Raymond 6 years ago
parent 096bbd2c51
commit cfa7ee88ce
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -24,14 +24,12 @@ func TestSockOptMark(t *testing.T) {
defer tcpServer.Close() defer tcpServer.Close()
const mark = 1 const mark = 1
ctx := context.Background() dialer := DefaultSystemDialer{}
ctx = ContextWithStreamSettings(ctx, &MemoryStreamConfig{ conn, err := dialer.Dial(context.Background(), nil, dest, &MemoryStreamConfig{
SocketSettings: &SocketConfig{ SocketSettings: &SocketConfig{
Mark: mark, Mark: mark,
}, },
}) })
dialer := DefaultSystemDialer{}
conn, err := dialer.Dial(ctx, nil, dest)
common.Must(err) common.Must(err)
defer conn.Close() defer conn.Close()

Loading…
Cancel
Save