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