summaryrefslogtreecommitdiffstats
path: root/tests/bugs/snapshot/bug-1597662.t
diff options
context:
space:
mode:
authorMohit Agrawal <moagrawal@redhat.com>2020-04-10 13:45:50 +0530
committerAmar Tumballi <amar@kadalu.io>2020-04-16 11:15:51 +0000
commit39f4a03cbaa7b3b93a3750258607cbd91b9d4b9d (patch)
tree6763e646a9f50033b752e22f2b7bef83ffad2bed /tests/bugs/snapshot/bug-1597662.t
parentf507c20bd11565c329d103075a15da11dba461d5 (diff)
tests: Fix for spurious failure for some test cases
Problem: Sometimes test case is failing at the time of creating files on mount point after mounting the volume Solution: After started the volume need to wait to make sure all bricks instances are completely started so put a online_brick_count check after just started the volume Change-Id: I5020e7e417539377277ca00189f9c51d2cf877a6 Fixes: #1162 Signed-off-by: Mohit Agrawal <moagrawal@redhat.com>
Diffstat (limited to 'tests/bugs/snapshot/bug-1597662.t')
-rw-r--r--tests/bugs/snapshot/bug-1597662.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bugs/snapshot/bug-1597662.t b/tests/bugs/snapshot/bug-1597662.t
index dc87d17..f582930 100644
--- a/tests/bugs/snapshot/bug-1597662.t
+++ b/tests/bugs/snapshot/bug-1597662.t
@@ -34,12 +34,13 @@ function is_snap_path
EXPECT "1" is_snap_path
$CLI snapshot deactivate snap1;
-
+EXPECT_WITHIN ${PROCESS_DOWN_TIMEOUT} 'Stopped' snapshot_status snap1
# snap is deactivated so snap_path should not exist
EXPECT "0" is_snap_path
# activate snap again
$CLI snapshot activate snap1;
+EXPECT_WITHIN ${PROCESS_UP_TIMEOUT} 'Started' snapshot_status snap1
# snap is active so snap_path should exist
EXPECT "1" is_snap_path