Skip to content
Snippets Groups Projects
Commit 01a1e8e4 authored by lantz's avatar lantz
Browse files

Merge pull request #397 from cdburkard/patches/test_nets

wait for switches to connect during test_nets
parents 9487cb50 684092ba
No related branches found
No related tags found
No related merge requests found
......@@ -23,14 +23,15 @@ class testSingleSwitchCommon( object ):
def testMinimal( self ):
"Ping test on minimal topology"
mn = Mininet( SingleSwitchTopo(), self.switchClass, Host, Controller )
mn = Mininet( SingleSwitchTopo(), self.switchClass, Host, Controller,
waitConnected=True )
dropped = mn.run( mn.ping )
self.assertEqual( dropped, 0 )
def testSingle5( self ):
"Ping test on 5-host single-switch topology"
mn = Mininet( SingleSwitchTopo( k=5 ), self.switchClass, Host,
Controller )
Controller, waitConnected=True )
dropped = mn.run( mn.ping )
self.assertEqual( dropped, 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