mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix more tests
This commit is contained in:
parent
8e79e0b0f2
commit
e4176d7048
@ -168,8 +168,6 @@ func TestVMessClosing(t *testing.T) {
|
|||||||
nBytes, err = conn.Read(resp)
|
nBytes, err = conn.Read(resp)
|
||||||
assert(err, Equals, io.EOF)
|
assert(err, Equals, io.EOF)
|
||||||
assert(nBytes, Equals, 0)
|
assert(nBytes, Equals, 0)
|
||||||
|
|
||||||
CloseAllServers(servers)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestZeroBuffer(t *testing.T) {
|
func TestZeroBuffer(t *testing.T) {
|
||||||
@ -275,6 +273,7 @@ func TestZeroBuffer(t *testing.T) {
|
|||||||
|
|
||||||
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
|
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
|
||||||
assert(err, IsNil)
|
assert(err, IsNil)
|
||||||
|
defer CloseAllServers(servers)
|
||||||
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
wg.Add(10)
|
wg.Add(10)
|
||||||
@ -300,6 +299,4 @@ func TestZeroBuffer(t *testing.T) {
|
|||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
CloseAllServers(servers)
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user