summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-1109770.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-1109770.t')
-rw-r--r--tests/bugs/bug-1109770.t8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/bugs/bug-1109770.t b/tests/bugs/bug-1109770.t
index c9490a63654..03b929defda 100644
--- a/tests/bugs/bug-1109770.t
+++ b/tests/bugs/bug-1109770.t
@@ -44,9 +44,7 @@ TEST $CLI snapshot create snap4 $V0;
TEST $CLI volume set $V0 features.uss enable;
-SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
-
-TEST [ $SNAPD_PID -gt 0 ];
+EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Y' check_if_snapd_exist
TEST $CLI volume set $V0 features.uss disable;
@@ -56,9 +54,7 @@ TEST ! [ $SNAPD_PID -gt 0 ];
TEST $CLI volume set $V0 features.uss enable;
-SNAPD_PID=$(ps auxww | grep snapd | grep -v grep | awk '{print $2}');
-
-TEST [ $SNAPD_PID -gt 0 ];
+EXPECT_WITHIN $PROCESS_UP_TIMEOUT 'Y' check_if_snapd_exist
TEST $CLI volume stop $V0;