f6ea51
From 37268580c0cfbf190ff9aa7859a604713cb366ee Mon Sep 17 00:00:00 2001
f6ea51
From: Yves Orton <demerphq@gmail.com>
f6ea51
Date: Tue, 27 Jun 2017 16:36:57 +0200
f6ea51
Subject: [PATCH] t/op/hash.t: fixup intermittently failing test
f6ea51
MIME-Version: 1.0
f6ea51
Content-Type: text/plain; charset=UTF-8
f6ea51
Content-Transfer-Encoding: 8bit
f6ea51
f6ea51
Port to 5.26.0:
f6ea51
f6ea51
commit b2ac59d1d0fda74d6612701d8316fe8dfb6a1b90
f6ea51
Author: Yves Orton <demerphq@gmail.com>
f6ea51
Date:   Tue Jun 27 16:36:57 2017 +0200
f6ea51
f6ea51
    t/op/hash.t: fixup intermittently failing test
f6ea51
f6ea51
Signed-off-by: Petr Písař <ppisar@redhat.com>
f6ea51
---
f6ea51
 t/op/hash.t | 2 +-
f6ea51
 1 file changed, 1 insertion(+), 1 deletion(-)
f6ea51
f6ea51
diff --git a/t/op/hash.t b/t/op/hash.t
f6ea51
index a0e79c7..b941c57 100644
f6ea51
--- a/t/op/hash.t
f6ea51
+++ b/t/op/hash.t
f6ea51
@@ -206,7 +206,7 @@ sub torture_hash {
f6ea51
     my $keys = pop @groups;
f6ea51
     ++$h->{$_} foreach @$keys;
f6ea51
     my (undef, $total) = validate_hash("$desc " . keys %$h, $h);
f6ea51
-    is($total, $total0, "bucket count is constant when rebuilding");
f6ea51
+    ok($total == $total0 || $total == ($total0*2), "bucket count is expected size when rebuilding");
f6ea51
     is(scalar %$h, pop @groups, "scalar keys is identical when rebuilding");
f6ea51
     ++$h1->{$_} foreach @$keys;
f6ea51
     validate_hash("$desc copy " . keys %$h1, $h1);
f6ea51
-- 
f6ea51
2.9.4
f6ea51