Merge pull request #53 from basho/bugfix/52
Simple fix for #52: file size matters
This commit is contained in:
commit
16acda3c7e
1 changed files with 3 additions and 1 deletions
|
@ -42,7 +42,9 @@ basic_test() ->
|
|||
T2 = machi_merkle_tree:build_tree(D1),
|
||||
|
||||
?assertNotEqual(T1#naive.root, T2#naive.root),
|
||||
?assertEqual(1, length(machi_merkle_tree:naive_diff(T1, T2))).
|
||||
?assertEqual(true, length(machi_merkle_tree:naive_diff(T1, T2)) == 1
|
||||
orelse
|
||||
Filesize > ChunkSize).
|
||||
|
||||
|
||||
make_leaf_nodes(Filesize) ->
|
||||
|
|
Loading…
Reference in a new issue