~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

Merge loom thread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
                                                     http_logs))
297
297
        # FIXME naughty poking in there.
298
298
        self.get_readonly_server().logs = []
299
 
        # check there is nothing more to fetch
300
 
        source = Branch.open(self.get_readonly_url("source/"))
 
299
        # check there is nothing more to fetch.  We take care to re-use the
 
300
        # existing transport so that the request logs we're about to examine
 
301
        # aren't cluttered with redundant probes for a smart server.
 
302
        source = Branch.open(
 
303
            self.get_readonly_url("source/"),
 
304
            possible_transports=[source.bzrdir.root_transport])
301
305
        self.assertEqual(target.fetch(source), (0, []))
302
306
        # should make just two requests
303
307
        http_logs = self.get_readonly_server().logs