Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 1 | package main |
| 2 | |
| 3 | func (s *TapSuite) TestLinuxIperf() { |
| 4 | t := s.T() |
| 5 | clnCh := make(chan error) |
| 6 | stopServerCh := make(chan struct{}) |
| 7 | srvCh := make(chan error, 1) |
| 8 | defer func() { |
| 9 | stopServerCh <- struct{}{} |
| 10 | }() |
| 11 | |
| 12 | go StartServerApp(srvCh, stopServerCh, nil) |
| 13 | err := <-srvCh |
Maros Ondrejicka | 98a91e8 | 2022-12-06 15:38:05 +0100 | [diff] [blame] | 14 | s.assertNil(err) |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 15 | t.Log("server running") |
| 16 | go StartClientApp(nil, clnCh) |
| 17 | t.Log("client running") |
| 18 | err = <-clnCh |
Maros Ondrejicka | 98a91e8 | 2022-12-06 15:38:05 +0100 | [diff] [blame] | 19 | s.assertNil(err) |
Filip Tehlar | 229f5fc | 2022-08-09 14:44:47 +0000 | [diff] [blame] | 20 | t.Log("Test completed") |
| 21 | } |