You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If by chance the call to crypto:rand_bytes generates a random bitstring that starts with a data types tag (in the example below a bitstring that starts with the map ?TAG has been generated) then the test will fail for the wrong reason. Use quickcheck, or some deterministic method to generate bytes that are invalid from the start.
riak_dt_map: invalid_binary_test...*failed*
in function riak_dt_map:'-invalid_binary_test/0-fun-0-'/0 (src/riak_dt_map.erl, line 955)
**error:{assertMatch_failed,[{module,riak_dt_map},
{line,955},
{expression,"from_binary ( << ( crypto : rand_bytes ( 187 ) ) / binary >> )"},
{pattern,"? INVALID_BINARY"},
{value,{error,unsupported_version,226}}]}
The text was updated successfully, but these errors were encountered:
russelldb
changed the title
The test for invalid_binary my sometimes fail
The test for invalid_binary may sometimes fail
Jan 29, 2015
If by chance the call to
crypto:rand_bytes
generates a random bitstring that starts with a data types tag (in the example below a bitstring that starts with the map?TAG
has been generated) then the test will fail for the wrong reason. Use quickcheck, or some deterministic method to generate bytes that are invalid from the start.The text was updated successfully, but these errors were encountered: