Skip to content

Commit 822d138

Browse files
authored
Merge pull request #851 from mnordsletten/dev
Fix for stress test and dhcp test
2 parents 2955709 + 66663be commit 822d138

2 files changed

Lines changed: 3 additions & 1 deletion

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))

test/stress/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
# It's to be expected that the VM allocates more room during the running of tests
3232
# e.g. for containers, packets etc. These should all be freed after a run.
33-
acceptable_increase = 2 * PAGE_SIZE
33+
acceptable_increase = 12 * PAGE_SIZE
3434

3535
# A persistent connection to the VM for getting memory info
3636
# TODO: This should be expanded to check more vital signs, such as time of day,

0 commit comments

Comments
 (0)