Skip to content

Commit 66663be

Browse files
committed
dhcp test: Added sleep to prevent bug in dhcp test
1 parent 334f54e commit 66663be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/net/integration/dhcp/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import sys
44
import os
5+
import time
56
import subprocess
67

78
includeos_src = os.environ.get('INCLUDEOS_SRC',
@@ -23,6 +24,7 @@ def DHCP_test():
2324
ip_string = vm.readline()
2425
print "<Test.py> Assigned address: ", ip_string
2526
print "<Test.py> Trying to ping"
27+
time.sleep(1)
2628
try:
2729
command = ["ping", ip_string.rstrip(), "-c", str(ping_count), "-i", "0.2"]
2830
print color.DATA(" ".join(command))

0 commit comments

Comments
 (0)