Remove other accept

This commit is contained in:
Asim Aslam 2019-08-07 19:03:45 +01:00
parent dcf4fed6a3
commit fc379f2d2c

View File

@ -103,18 +103,12 @@ func TestTwoTunnel(t *testing.T) {
var wg sync.WaitGroup var wg sync.WaitGroup
// start accepting connections // start accepting connections
wg.Add(1)
go testAccept(t, tunA, &wg)
wg.Add(1) wg.Add(1)
go testAccept(t, tunB, &wg) go testAccept(t, tunB, &wg)
// send a message // send a message
testSend(t, tunA) testSend(t, tunA)
// send a message
testSend(t, tunB)
// wait until done // wait until done
wg.Wait() wg.Wait()
} }