PROTON-490: convert string data to binary for transport push
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/e7eb0c57 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e7eb0c57 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e7eb0c57 Branch: refs/heads/master Commit: e7eb0c579b376e4f91667c4651f5a7fc84a053b2 Parents: 45238b4 Author: Ken Giusti <[email protected]> Authored: Fri May 1 13:07:08 2015 -0400 Committer: Ken Giusti <[email protected]> Committed: Fri May 1 13:07:08 2015 -0400 ---------------------------------------------------------------------- tests/python/proton_tests/engine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/e7eb0c57/tests/python/proton_tests/engine.py ---------------------------------------------------------------------- diff --git a/tests/python/proton_tests/engine.py b/tests/python/proton_tests/engine.py index bd0c212..c75bef9 100644 --- a/tests/python/proton_tests/engine.py +++ b/tests/python/proton_tests/engine.py @@ -2494,9 +2494,9 @@ class SaslEventTest(CollectorTest): transport.bind(conn) self.expect(Event.CONNECTION_INIT, Event.CONNECTION_BOUND) - transport.push('AMQP\x03\x01\x00\x00\x00\x00\x00 \x02\x01\x00\x00\x00SA' - '\xd0\x00\x00\x00\x10\x00\x00\x00\x02\xa3\tANONYMOUS@' - 'AMQP\x00\x01\x00\x00') + transport.push(str2bin('AMQP\x03\x01\x00\x00\x00\x00\x00 \x02\x01\x00\x00\x00SA' + '\xd0\x00\x00\x00\x10\x00\x00\x00\x02\xa3\tANONYMOUS@' + 'AMQP\x00\x01\x00\x00')) self.expect(Event.TRANSPORT) for i in range(1024): p = transport.pending() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
