aboutsummaryrefslogtreecommitdiffstats
path: root/extras/hs-test/iperf_linux_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hs-test/iperf_linux_test.go')
-rw-r--r--extras/hs-test/iperf_linux_test.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/extras/hs-test/iperf_linux_test.go b/extras/hs-test/iperf_linux_test.go
index 0a59f6a4e0f..ead9cc81e43 100644
--- a/extras/hs-test/iperf_linux_test.go
+++ b/extras/hs-test/iperf_linux_test.go
@@ -13,10 +13,8 @@ func init() {
}
func IperfUdpLinuxTest(s *IperfSuite) {
- serverContainer := s.GetContainerByName(ServerIperfContainerName)
- serverIpAddress := s.GetInterfaceByName(ServerIperfInterfaceName).Ip4AddressString()
- clientContainer := s.GetContainerByName(ClientIperfContainerName)
- clientIpAddress := s.GetInterfaceByName(ClientIperfInterfaceName).Ip4AddressString()
+ serverIpAddress := s.Interfaces.Server.Ip4AddressString()
+ clientIpAddress := s.Interfaces.Client.Ip4AddressString()
clnCh := make(chan error)
stopServerCh := make(chan struct{})
@@ -30,7 +28,7 @@ func IperfUdpLinuxTest(s *IperfSuite) {
go func() {
defer GinkgoRecover()
cmd := "iperf3 -4 -s -B " + serverIpAddress + " -p " + s.GetPortFromPpid()
- s.StartServerApp(serverContainer, "iperf3", cmd, srvCh, stopServerCh)
+ s.StartServerApp(s.Containers.Server, "iperf3", cmd, srvCh, stopServerCh)
}()
err := <-srvCh
s.AssertNil(err, fmt.Sprint(err))
@@ -40,7 +38,7 @@ func IperfUdpLinuxTest(s *IperfSuite) {
defer GinkgoRecover()
cmd := "iperf3 -c " + serverIpAddress + " -B " + clientIpAddress +
" -u -l 1460 -b 10g -J -p " + s.GetPortFromPpid()
- s.StartClientApp(clientContainer, cmd, clnCh, clnRes)
+ s.StartClientApp(s.Containers.Client, cmd, clnCh, clnRes)
}()
s.AssertChannelClosed(time.Minute*3, clnCh)
output := <-clnRes