close dokodemo after testing

pull/82/head
v2ray 2016-02-04 18:03:15 +01:00
parent d5477e407b
commit 903985eab5
1 changed files with 2 additions and 0 deletions

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)