From 9f7fbd9a048500d695e63d5717c05e38cf7df773 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 22 Oct 2017 16:04:39 +0200 Subject: [PATCH] fix websocket test --- transport/internet/websocket/ws_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/transport/internet/websocket/ws_test.go b/transport/internet/websocket/ws_test.go index 49746ed20..c90161c1c 100644 --- a/transport/internet/websocket/ws_test.go +++ b/transport/internet/websocket/ws_test.go @@ -6,7 +6,6 @@ import ( "testing" "time" - "v2ray.com/core/common" "v2ray.com/core/common/net" "v2ray.com/core/testing/assert" tlsgen "v2ray.com/core/testing/tls" @@ -89,7 +88,7 @@ func Test_listenWSAndDial_TLS(t *testing.T) { }) listen, err := ListenWS(ctx, net.DomainAddress("localhost"), 13143, func(ctx context.Context, conn internet.Connection) bool { go func() { - common.Must(conn.Close()) + _ = conn.Close() }() return true }) @@ -98,5 +97,5 @@ func Test_listenWSAndDial_TLS(t *testing.T) { conn, err := Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), 13143)) assert.Error(err).IsNil() - common.Must(conn.Close()) + _ = conn.Close() }