Rev 4014: Adjust push acceptance/effort tests for correctness improvements in bzrlib which raised the figure. in http://people.ubuntu.com/~robertc/baz2.0/push.roundtrips

Robert Collins robertc at robertcollins.net
Wed Feb 18 04:14:44 GMT 2009


At http://people.ubuntu.com/~robertc/baz2.0/push.roundtrips

------------------------------------------------------------
revno: 4014
revision-id: robertc at robertcollins.net-20090218041442-k28bhmqhwko728u5
parent: robertc at robertcollins.net-20090218041128-nfgtpku9628f0h5x
committer: Robert Collins <robertc at robertcollins.net>
branch nick: push.roundtrips
timestamp: Wed 2009-02-18 15:14:42 +1100
message:
  Adjust push acceptance/effort tests for correctness improvements in bzrlib which raised the figure.
=== modified file 'bzrlib/tests/blackbox/test_push.py'
--- a/bzrlib/tests/blackbox/test_push.py	2009-02-18 00:02:42 +0000
+++ b/bzrlib/tests/blackbox/test_push.py	2009-02-18 04:14:42 +0000
@@ -187,7 +187,7 @@
         self.transport_server = server.SmartTCPServer_for_testing
         self.hpss_calls = []
         def capture_hpss_call(params):
-            self.hpss_calls.append(params.method)
+            self.hpss_calls.append(params)
         client._SmartClient.hooks.install_named_hook(
             'call', capture_hpss_call, None)
 
@@ -198,7 +198,7 @@
         self._reset_smart_call_log()
         self.run_bzr(['push', self.get_url('to-one')], working_dir='from')
         rpc_count = len(self.hpss_calls)
-        self.assertEqual(99, rpc_count)
+        self.assertEqual(107, rpc_count)
 
     def test_push_smart_stacked_streaming_acceptance(self):
         self._setup_smart_call_log()
@@ -210,7 +210,7 @@
         self.run_bzr(['push', '--stacked', '--stacked-on', '../parent',
             self.get_url('public')], working_dir='local')
         rpc_count = len(self.hpss_calls)
-        self.assertEqual(123, rpc_count)
+        self.assertEqual(132, rpc_count)
         remote = Branch.open('public')
         self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
 




More information about the bazaar-commits mailing list