summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-974972.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-974972.t')
-rwxr-xr-xtests/bugs/bug-974972.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bugs/bug-974972.t b/tests/bugs/bug-974972.t
index 15deac090e9..1b57307e76d 100755
--- a/tests/bugs/bug-974972.t
+++ b/tests/bugs/bug-974972.t
@@ -2,6 +2,7 @@
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
+. $(dirname $0)/../nfs.rc
#This script checks that nfs mount does not fail lookup on files with split-brain
cleanup;
@@ -11,8 +12,8 @@ TEST pidof glusterd
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{0,1}
TEST $CLI volume set $V0 self-heal-daemon off
TEST $CLI volume start $V0
-sleep 5
-TEST mount -t nfs -o vers=3 $H0:/$V0 $N0
+EXPECT_WITHIN 20 "1" is_nfs_export_available;
+TEST mount_nfs $H0:/$V0 $N0
TEST touch $N0/1
TEST kill_brick ${V0} ${H0} ${B0}/${V0}1
echo abc > $N0/1