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, 15 insertions, 0 deletions
diff --git a/tests/basic/uss.t b/tests/basic/uss.t
index eeccb28be05..0e2b669ee7a 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
@@ -177,6 +188,10 @@ TEST fd_close $fd3;
# test 73
TEST $CLI volume set $V0 "features.snapshot-directory" .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";
+
TEST ls $M0/.history;
NUM_SNAPS=$(ls $M0/.history | wc -l);