hs-test: remove exec flags from source files
[vpp.git] / extras / hs-test / linux_iperf_test.go
1 package main
2
3 func (s *TapSuite) TestLinuxIperf() {
4         clnCh := make(chan error)
5         stopServerCh := make(chan struct{})
6         srvCh := make(chan error, 1)
7         clnRes := make(chan string, 1)
8         defer func() {
9                 stopServerCh <- struct{}{}
10         }()
11
12         go StartServerApp(srvCh, stopServerCh, nil)
13         err := <-srvCh
14         s.assertNil(err)
15         s.log("server running")
16         go StartClientApp(nil, clnCh, clnRes)
17         s.log("client running")
18         s.log(<-clnRes)
19         err = <-clnCh
20         s.assertNil(err)
21         s.log("Test completed")
22 }