summaryrefslogtreecommitdiffstats
path: root/tests/basic/uss.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/uss.t')
-rw-r--r--tests/basic/uss.t15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t
index aabe00cd880..2e4286860cf 100644
--- a/tests/basic/uss.t
+++ b/tests/basic/uss.t
@@ -12,6 +12,17 @@ function check_readonly()
return $?
}
+function lookup()
+{
+ ls $1
+ if [ "$?" == "0" ]
+ then
+ echo "Y"
+ else
+ echo "N"
+ fi
+}
+
cleanup;
TESTS_EXPECTED_IN_LOOP=10
@@ -179,7 +190,9 @@ TEST fd_close $fd3;
# test 73
TEST $CLI volume set $V0 "features.snapshot-directory" .history
-TEST ls $M0/.history;
+#snapd client might take fraction of time to compare the volfile from glusterd
+#hence a EXPECT_WITHIN is a better choice here
+EXPECT_WITHIN 2 "Y" lookup "$M0/.history";
NUM_SNAPS=$(ls $M0/.history | wc -l);