Skip to content
Snippets Groups Projects
Commit 1e9e781c authored by Brian O'Connor's avatar Brian O'Connor
Browse files

changed 1% to 2% in test_limit.py

parent 24b38126
No related branches found
No related tags found
No related merge requests found
......@@ -10,14 +10,14 @@
class testLimit( unittest.TestCase ):
def testLimit( self ):
"Verify that CPU limits are within a 1% tolerance of limit for each scheduler"
"Verify that CPU limits are within a 2% tolerance of limit for each scheduler"
p = pexpect.spawn( 'python -m mininet.examples.limit' )
opts = [ '\*\*\* Testing network ([\d\.]+) Mbps',
'\*\*\* Results: \[([\d\., ]+)\]',
pexpect.EOF ]
count = 0
bw = 0
tolerance = 1
tolerance = 2
while True:
index = p.expect( opts )
if index == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment