]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Merge "Use FakeLoopingCall instead of the real one"
authorJenkins <jenkins@review.openstack.org>
Tue, 20 Aug 2013 19:00:59 +0000 (19:00 +0000)
committerGerrit Code Review <review@openstack.org>
Tue, 20 Aug 2013 19:00:59 +0000 (19:00 +0000)
1  2 
cinder/tests/brick/test_brick_connector.py

index f40fa25b3c5c7608aff23dd4fc659ef12162fe5e,fe8d44b3d9b40c3bda4ed55a5b76dcface8f39f0..37cc17b996422bd743f14f9901dc61769d62c6e0
@@@ -335,9 -360,12 +360,12 @@@ class AoEConnectorTestCase(ConnectorTes
      def setUp(self):
          super(AoEConnectorTestCase, self).setUp()
          self.mox = mox.Mox()
 -        self.connector = connector.AoEConnector()
 +        self.connector = connector.AoEConnector('sudo')
          self.connection_properties = {'target_shelf': 'fake_shelf',
                                        'target_lun': 'fake_lun'}
+         self.stubs.Set(loopingcall,
+                        'FixedIntervalLoopingCall',
+                        FakeFixedIntervalLoopingCall)
  
      def tearDown(self):
          self.mox.VerifyAll()