summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-966018.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-966018.t')
-rw-r--r--tests/bugs/bug-966018.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/bugs/bug-966018.t b/tests/bugs/bug-966018.t
index 2a46972413f..55a01b8b7b3 100644
--- a/tests/bugs/bug-966018.t
+++ b/tests/bugs/bug-966018.t
@@ -2,6 +2,7 @@
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
+. $(dirname $0)/../nfs.rc
#This tests if eager-lock blocks metadata operations on nfs/fuse mounts.
#If it is not woken up, INODELK from the next command waits
@@ -18,8 +19,8 @@ TEST $CLI volume set $V0 cluster.post-op-delay-secs 3
TEST $CLI volume start $V0
TEST $CLI volume profile $V0 start
-sleep 5
-TEST mount -t nfs -o vers=3,nolock $H0:/$V0 $N0;
+EXPECT_WITHIN 20 "1" is_nfs_export_available;
+TEST mount_nfs $H0:/$V0 $N0 nolock;
TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id=$V0 $M0
echo 1 > $N0/1 && chmod +x $N0/1
echo 1 > $M0/1 && chmod +x $M0/1