blob: bef07fb7d65432e90db396a1f1d5570989d4b71a [file] [log] [blame]
Filip Tehlar229f5fc2022-08-09 14:44:47 +00001package main
2
3func (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 Ondrejicka98a91e82022-12-06 15:38:05 +010014 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000015 t.Log("server running")
16 go StartClientApp(nil, clnCh)
17 t.Log("client running")
18 err = <-clnCh
Maros Ondrejicka98a91e82022-12-06 15:38:05 +010019 s.assertNil(err)
Filip Tehlar229f5fc2022-08-09 14:44:47 +000020 t.Log("Test completed")
21}