From 47b155b77f46851a8544589fa475b43ed62e3c59 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 18 Apr 2017 12:51:38 +0200 Subject: [PATCH] fix test break --- transport/internet/tcp/sockopt_linux_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport/internet/tcp/sockopt_linux_test.go b/transport/internet/tcp/sockopt_linux_test.go index a92b746bb..ecc6ac4bb 100644 --- a/transport/internet/tcp/sockopt_linux_test.go +++ b/transport/internet/tcp/sockopt_linux_test.go @@ -8,6 +8,7 @@ import ( "v2ray.com/core/testing/assert" "v2ray.com/core/testing/servers/tcp" + "v2ray.com/core/transport/internet" . "v2ray.com/core/transport/internet/tcp" ) @@ -19,7 +20,8 @@ func TestGetOriginalDestination(t *testing.T) { assert.Error(err).IsNil() defer tcpServer.Close() - conn, err := Dial(context.Background(), dest) + ctx := internet.ContextWithTransportSettings(context.Background, &Config{}) + conn, err := Dial(ctx, dest) assert.Error(err).IsNil() defer conn.Close()