hs-test: use assert-like approach in test cases
[vpp.git] / extras / hs-test / linux_iperf_test.go
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
14         s.assertNil(err)
15         t.Log("server running")
16         go StartClientApp(nil, clnCh)
17         t.Log("client running")
18         err = <-clnCh
19         s.assertNil(err)
20         t.Log("Test completed")
21 }