summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorkarthik-us <ksubrahm@redhat.com>2018-08-10 15:37:15 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-08-13 12:22:08 +0000
commitfcf7ac887147e2f96a93165480c70364ee89a870 (patch)
tree15817dc223688d1f2441b957bc7eefe8817f2c23 /tests
parentf88636abcb300c3a6b3cc579fa93da6d6b4107a7 (diff)
cluster/afr: Fix bug-1433571-undo-pending-only-on-up-bricks.t
Problem: The test case was checking for the entry pending marker reset on the root after performing client side lookup at line #60-63. But sometimes the entry heal was not getting completed immediately. Fix: Wait for the entry heal to complete before checking the changelog. Change-Id: I42fde21b04a126ab044ce58373a996d72f125d96 fixes: bz#1614730 Signed-off-by: karthik-us <ksubrahm@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/replicate/bug-1433571-undo-pending-only-on-up-bricks.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/replicate/bug-1433571-undo-pending-only-on-up-bricks.t b/tests/bugs/replicate/bug-1433571-undo-pending-only-on-up-bricks.t
index 271abb4fe9a..0767f47fdda 100644
--- a/tests/bugs/replicate/bug-1433571-undo-pending-only-on-up-bricks.t
+++ b/tests/bugs/replicate/bug-1433571-undo-pending-only-on-up-bricks.t
@@ -58,9 +58,9 @@ TEST $CLI volume set $V0 cluster.entry-self-heal on
TEST ls $M0
EXPECT "000000000000000000000001" get_hex_xattr trusted.afr.$V0-client-0 $B0/${V0}1
-EXPECT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-2 $B0/${V0}1
EXPECT "000000000000000000000001" get_hex_xattr trusted.afr.$V0-client-0 $B0/${V0}2
-EXPECT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-1 $B0/${V0}2
+EXPECT_WITHIN $HEAL_TIMEOUT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-2 $B0/${V0}1
+EXPECT_WITHIN $HEAL_TIMEOUT "000000000000000000000000" get_hex_xattr trusted.afr.$V0-client-1 $B0/${V0}2
#Bring back all the bricks and trigger the heal again by doing ls. Now the
#pending xattrs on all the bricks should be 0.