tunnel: remove unused test loop (#1878)

Co-authored-by: Asim Aslam <asim@aslam.me>
This commit is contained in:
Lars Lehtonen 2020-07-29 04:51:09 -07:00 committed by GitHub
parent d66803a136
commit 3d1ba914fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,6 @@ func testAccept(t *testing.T, tun Tunnel, wait chan bool, wg *sync.WaitGroup) {
} }
// get a message // get a message
for {
// accept the message // accept the message
m := new(transport.Message) m := new(transport.Message)
if err := c.Recv(m); err != nil { if err := c.Recv(m); err != nil {
@ -133,7 +132,6 @@ func testAccept(t *testing.T, tun Tunnel, wait chan bool, wg *sync.WaitGroup) {
wait <- true wait <- true
return return
}
} }
// testSend will create a new link to an address and then a tunnel on top // testSend will create a new link to an address and then a tunnel on top