From 8423875b375a374689a8d9b58bdddd30582ba2d8 Mon Sep 17 00:00:00 2001 From: Bob Lantz Date: Wed, 24 Mar 2010 17:03:27 -0700 Subject: [PATCH] Change to use new interface to mn.run() --- mininet/test/test_nets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mininet/test/test_nets.py b/mininet/test/test_nets.py index e114e3c..3ace2ed 100755 --- a/mininet/test/test_nets.py +++ b/mininet/test/test_nets.py @@ -26,7 +26,7 @@ class testSingleSwitch( unittest.TestCase ): controllerParams = ControllerParams( '10.0.0.0', 8 ) mn = Mininet( SingleSwitchTopo(), switch, Host, Controller, controllerParams ) - dropped = mn.run( 'ping' ) + dropped = mn.run( mn.ping ) self.assertEqual( dropped, 0 ) def testSingle5( self ): @@ -36,7 +36,7 @@ class testSingleSwitch( unittest.TestCase ): controllerParams = ControllerParams( '10.0.0.0', 8 ) mn = Mininet( SingleSwitchTopo( k=5 ), switch, Host, Controller, controllerParams ) - dropped = mn.run( 'ping' ) + dropped = mn.run( mn.ping ) self.assertEqual( dropped, 0 ) @@ -50,7 +50,7 @@ class testLinear( unittest.TestCase ): controllerParams = ControllerParams( '10.0.0.0', 8 ) mn = Mininet( LinearTopo( k=5 ), switch, Host, Controller, controllerParams ) - dropped = mn.run( 'ping' ) + dropped = mn.run( mn.ping ) self.assertEqual( dropped, 0 )