summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-12-19 12:22:29 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-12-23 01:00:04 -0800
commitb869735cef1e77f3225e2fcdf9a81221a76ae768 (patch)
tree8541efb6a3c3d52b9cd9a0ee09f851a58d51f30d
parent12190c0338dea6bbfafb7bf7693ce4ee547b5954 (diff)
tests: Fix spurious failure in tests/bugs/replicate/bug-1402730.t
Backport of: http://review.gluster.org/16193 Replace the EXPECT '00000001' with EXPECT_NOT '00000000'. This is because occasionally a name-heal is performing new-entry marking on 'c' causing the pending entry changelog on it to become '00000002'. Change-Id: Ib7b0d64c8de2498c2ffb3b8e06228694f2c55755 BUG: 1406740 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/16224 Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
-rw-r--r--tests/bugs/replicate/bug-1402730.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/replicate/bug-1402730.t b/tests/bugs/replicate/bug-1402730.t
index c6768a0c678..dcde60dbdf7 100644
--- a/tests/bugs/replicate/bug-1402730.t
+++ b/tests/bugs/replicate/bug-1402730.t
@@ -34,8 +34,8 @@ GFID_C=$(get_gfid_string $M0/a/b/c)
TEST stat $B0/${V0}0/.glusterfs/indices/entry-changes/$GFID_C/file
TEST stat $B0/${V0}1/.glusterfs/indices/entry-changes/$GFID_C/file
-EXPECT "00000001" afr_get_specific_changelog_xattr $B0/${V0}0/a/b/c trusted.afr.$V0-client-2 entry
-EXPECT "00000001" afr_get_specific_changelog_xattr $B0/${V0}1/a/b/c trusted.afr.$V0-client-2 entry
+EXPECT_NOT "00000000" afr_get_specific_changelog_xattr $B0/${V0}0/a/b/c trusted.afr.$V0-client-2 entry
+EXPECT_NOT "00000000" afr_get_specific_changelog_xattr $B0/${V0}1/a/b/c trusted.afr.$V0-client-2 entry
cd ~