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:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user