You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2019/02/22 17:28:26 UTC

[couchdb-khash] 19/25: Fix iterator expiry test

This is an automated email from the ASF dual-hosted git repository.

jaydoane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/couchdb-khash.git

commit 0fece209e5d2e37c80ac9b2a8efe098d526d7c83
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Mon Oct 2 16:37:56 2017 -0400

    Fix iterator expiry test
    
    This test started failing with Erlang 20.0 release. The reason is that opaaque
    NIF resources stopped being identifed as empty binaries in Erlang so previously
    it matched but once refs were used it stopped matching.
    
    Fixes #855
---
 test/khash_test.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/khash_test.erl b/test/khash_test.erl
index 20bd785..f19c858 100644
--- a/test/khash_test.erl
+++ b/test/khash_test.erl
@@ -240,7 +240,7 @@ no_expiration_iterators_test_() ->
                     }
                 end,
                 fun({ok, H, I, Err}) ->
-                    {ok, I} = khash:iter(H),
+                    {ok, _OtherI} = khash:iter(H),
                     {foo, bar} = khash:iter_next(I),
                     end_of_table = khash:iter_next(I),
                     {