summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Klishin <mklishin@pivotal.io>2016-09-01 23:52:15 +0300
committerMichael Klishin <mklishin@pivotal.io>2016-09-01 23:52:15 +0300
commitcc6dbc706e7bd811a01c89a1cdafe7251aa3092f (patch)
tree56a564d7ec852ce136d8a8b0002a12016c5b17ca /test
parent6fd6548bb68356cceb50679767446a1ea0f3c55d (diff)
downloadrabbitmq-server-git-cc6dbc706e7bd811a01c89a1cdafe7251aa3092f.tar.gz
Make sure the argument to md5 is a binary in this test
Diffstat (limited to 'test')
-rw-r--r--test/policy_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/policy_SUITE.erl b/test/policy_SUITE.erl
index 0920b25418..634f198858 100644
--- a/test/policy_SUITE.erl
+++ b/test/policy_SUITE.erl
@@ -130,7 +130,7 @@ publish(Ch, Q, Ps) ->
publish1(Ch, Q, P) ->
amqp_channel:cast(Ch, #'basic.publish'{routing_key = Q},
#amqp_msg{props = props(P),
- payload = erlang:md5(P)}).
+ payload = erlang:md5(term_to_binary(P))}).
publish1(Ch, Q, P, Pd) ->
amqp_channel:cast(Ch, #'basic.publish'{routing_key = Q},