changed 1% to 2% in test_limit.py

This commit is contained in:
Brian O'Connor
2013-09-11 14:45:48 -07:00
parent 24b38126ec
commit 1e9e781c12
+2 -2
View File
@@ -10,14 +10,14 @@ import pexpect
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: