Revision 684092ba mininet/test/test_nets.py

View differences:

mininet/test/test_nets.py
23 23

  
24 24
    def testMinimal( self ):
25 25
        "Ping test on minimal topology"
26
        mn = Mininet( SingleSwitchTopo(), self.switchClass, Host, Controller )
26
        mn = Mininet( SingleSwitchTopo(), self.switchClass, Host, Controller,
27
                      waitConnected=True )
27 28
        dropped = mn.run( mn.ping )
28 29
        self.assertEqual( dropped, 0 )
29 30

  
30 31
    def testSingle5( self ):
31 32
        "Ping test on 5-host single-switch topology"
32 33
        mn = Mininet( SingleSwitchTopo( k=5 ), self.switchClass, Host,
33
                      Controller )
34
                      Controller, waitConnected=True )
34 35
        dropped = mn.run( mn.ping )
35 36
        self.assertEqual( dropped, 0 )
36 37

  

Also available in: Unified diff