summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2017-06-20 12:38:06 +0100
committerGerhard Lazu <gerhard@lazu.co.uk>2017-06-20 12:38:06 +0100
commit085bacfe5a843eba507b927c9c616212f3e5487e (patch)
treeef4916251b0f43a252d771af0ae343d622cb7932
parentd81736602e67eca0b83bcb72b8fce805b328a2e0 (diff)
downloadrabbitmq-server-git-085bacfe5a843eba507b927c9c616212f3e5487e.tar.gz
Fix binary comparison in OTP R16B03
Binaries are not equal in OTP R16B03 & 20-rc.1, converting binary back to term passes in R16B03. Would have tested OTP 20-rc.1 as well, but it's not available via kerl [#146794925]
-rw-r--r--test/term_to_binary_compat_prop_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/term_to_binary_compat_prop_SUITE.erl b/test/term_to_binary_compat_prop_SUITE.erl
index 6c8a92a29f..0c604f8994 100644
--- a/test/term_to_binary_compat_prop_SUITE.erl
+++ b/test/term_to_binary_compat_prop_SUITE.erl
@@ -56,7 +56,7 @@ prop_pre_3_6_11_works(_Config) ->
begin
Current = term_to_binary(Term),
Compat = term_to_binary_compat:term_to_binary_1(Term),
- Current =:= Compat
+ binary_to_term(Current) =:= binary_to_term(Compat)
end).
term_to_binary_latin_atom(Config) ->