~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Martin Pool
  • Date: 2009-09-15 01:52:34 UTC
  • mfrom: (4685 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4689.
  • Revision ID: mbp@sourcefrog.net-20090915015234-lbvl4euj2z353zjl
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
732
732
        client_sock.sendall(rest_of_request_bytes)
733
733
        server._serve_one_request(server_protocol)
734
734
        server_sock.close()
735
 
        self.assertEqual(expected_response, client_sock.recv(50),
 
735
        self.assertEqual(expected_response, osutils.recv_all(client_sock, 50),
736
736
                         "Not a version 2 response to 'hello' request.")
737
737
        self.assertEqual('', client_sock.recv(1))
738
738