mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-08-07 18:01:47 +00:00
test(proxymux): reduce wait in the tests
This commit is contained in:
@@ -31,9 +31,6 @@ func TestListenSOCKS(t *testing.T) {
|
||||
}
|
||||
sl.Close()
|
||||
|
||||
// Wait for muxListener.socksListener released
|
||||
time.Sleep(time.Second)
|
||||
|
||||
sl, err = ListenSOCKS(address)
|
||||
if !assert.NoError(t, err) {
|
||||
return
|
||||
@@ -63,9 +60,6 @@ func TestListenHTTP(t *testing.T) {
|
||||
}
|
||||
hl.Close()
|
||||
|
||||
// Wait for muxListener.socksListener released
|
||||
time.Sleep(time.Second)
|
||||
|
||||
hl, err = ListenHTTP(address)
|
||||
if !assert.NoError(t, err) {
|
||||
return
|
||||
|
Reference in New Issue
Block a user