fix broken test

pull/1435/head
Darien Raymond 2018-11-21 16:58:37 +01:00
parent 096bbd2c51
commit cfa7ee88ce
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 2 additions and 4 deletions

View File

@ -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()