1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

close dokodemo after testing

This commit is contained in:
v2ray 2016-02-04 18:03:15 +01:00
parent d5477e407b
commit 903985eab5

View File

@ -26,6 +26,7 @@ func TestDokodemoTCP(t *testing.T) {
Network: v2net.TCPNetwork.AsList(),
Timeout: 600,
}, testPacketDispatcher)
defer dokodemo.Close()
port := v2nettesting.PickPort()
err := dokodemo.Listen(port)
@ -68,6 +69,7 @@ func TestDokodemoUDP(t *testing.T) {
Network: v2net.UDPNetwork.AsList(),
Timeout: 600,
}, testPacketDispatcher)
defer dokodemo.Close()
port := v2nettesting.PickPort()
err := dokodemo.Listen(port)