From 375c8c3e4a79a97f1d153b9af6c54a8456fcfc56 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Sat, 11 Jun 2016 15:27:56 +0200 Subject: [PATCH] pkg: proxy: fix TCPEchoServer.Close() in unit test Signed-off-by: Antonio Murdaca --- proxy/network_proxy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/network_proxy_test.go b/proxy/network_proxy_test.go index 9e38256..9a73548 100644 --- a/proxy/network_proxy_test.go +++ b/proxy/network_proxy_test.go @@ -65,7 +65,7 @@ func (server *TCPEchoServer) Run() { } func (server *TCPEchoServer) LocalAddr() net.Addr { return server.listener.Addr() } -func (server *TCPEchoServer) Close() { server.listener.Addr() } +func (server *TCPEchoServer) Close() { server.listener.Close() } func (server *UDPEchoServer) Run() { go func() {