Remove other accept
This commit is contained in:
		| @@ -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() | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user