~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/stub_sftp.py

  • Committer: Vincent Ladeuil
  • Date: 2010-06-23 14:25:17 UTC
  • mto: (5247.7.1 catch-them-all)
  • mto: This revision was merged to the branch mainline in revision 5396.
  • Revision ID: v.ladeuil+lp@free.fr-20100623142517-gsqzupyd30gq7c7r
Ugly fix for the last test failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
358
358
                                         home=tcs._server_homedir)
359
359
        server = tcs._server_interface(tcs)
360
360
        ssh_server.start_server(None, server)
 
361
        # FIXME: Long story short:
 
362
        # bt.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh
 
363
        # fails if we wait less than 0.2 seconds... paramiko uses a lot of
 
364
        # timeouts internally which probably mask a synchronisation
 
365
        # problem. Note that this is the only test that requires this hack and
 
366
        # the test may need to be fixed instead, but it's late and the test is
 
367
        # horrible as mentioned in its comments :) -- vila 20100623
 
368
        import time
 
369
        time.sleep(0.2)
361
370
 
362
371
    def wrap_for_latency(self):
363
372
        tcs = self.server.test_case_server