1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 04:55:37 -05:00

fix lint warnings for websocket

This commit is contained in:
Darien Raymond
2017-10-21 09:45:27 +02:00
parent afe190316d
commit 6dd23b45b0
4 changed files with 20 additions and 16 deletions

View File

@@ -6,6 +6,7 @@ import (
"testing"
"time"
"v2ray.com/core/common"
"v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
tlsgen "v2ray.com/core/testing/tls"
@@ -88,7 +89,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() {
conn.Close()
common.Must(conn.Close())
}()
return true
})
@@ -97,5 +98,5 @@ func Test_listenWSAndDial_TLS(t *testing.T) {
conn, err := Dial(ctx, net.TCPDestination(net.DomainAddress("localhost"), 13143))
assert.Error(err).IsNil()
conn.Close()
common.Must(conn.Close())
}