From 53cdcfdc2ba7e451b48476923422b85ec3b13b2e Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 29 Jul 2016 11:50:02 +0200 Subject: [PATCH] remove unnecessary goroutine --- transport/internet/kcp/connection_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/kcp/connection_test.go b/transport/internet/kcp/connection_test.go index 03fe6cde..cfbabc2c 100644 --- a/transport/internet/kcp/connection_test.go +++ b/transport/internet/kcp/connection_test.go @@ -41,10 +41,10 @@ func TestConnectionReadWrite(t *testing.T) { downReader, downWriter := io.Pipe() connClient := NewConnection(1, upWriter, &net.UDPAddr{IP: v2net.LocalHostIP.IP(), Port: 1}, &net.UDPAddr{IP: v2net.LocalHostIP.IP(), Port: 2}, NewSimpleAuthenticator()) - go connClient.FetchInputFrom(downReader) + connClient.FetchInputFrom(downReader) connServer := NewConnection(1, downWriter, &net.UDPAddr{IP: v2net.LocalHostIP.IP(), Port: 2}, &net.UDPAddr{IP: v2net.LocalHostIP.IP(), Port: 1}, NewSimpleAuthenticator()) - go connServer.FetchInputFrom(upReader) + connServer.FetchInputFrom(upReader) totalWritten := 1024 * 1024 clientSend := make([]byte, totalWritten)