add time delay after create tcp server on PC

pull/11147/head
luaijun 2023-02-21 15:30:34 +08:00
rodzic 109faee736
commit 0ff5b1f8e8
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -301,6 +301,7 @@ class IperfTestUtility(object):
process = subprocess.Popen(['iperf', '-s', '-B', self.pc_nic_ip,
'-t', str(TEST_TIME), '-i', '1', '-f', 'm'],
stdout=f, stderr=f)
time.sleep(1)
if bw_limit > 0:
self.dut.write('iperf -c {} -i 1 -t {} -b {}'.format(self.pc_nic_ip, TEST_TIME, bw_limit))
else: