~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_shared_repository.py

(jelmer) Check number of connections opened during various blackbox tests.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.bzrdir import BzrDir, BzrDirMetaFormat1
22
22
import bzrlib.errors as errors
23
23
from bzrlib.tests import TestCaseInTempDir
 
24
from bzrlib.tests.matchers import ContainsNoVfsCalls
 
25
 
24
26
 
25
27
class TestSharedRepo(TestCaseInTempDir):
26
28
 
119
121
        # being too low. If rpc_count increases, more network roundtrips have
120
122
        # become necessary for this use case. Please do not adjust this number
121
123
        # upwards without agreement from bzr's network support maintainers.
122
 
        self.assertLength(13, self.hpss_calls)
 
124
        self.assertLength(10, self.hpss_calls)
 
125
        self.assertLength(1, self.hpss_connections)
 
126
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
123
127
 
124
128
    def test_notification_on_branch_from_repository(self):
125
129
        out, err = self.run_bzr("init-repository -q a")