summaryrefslogtreecommitdiffstats
path: root/tests/bugs/snapshot
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-02-12 07:48:20 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-02-13 05:35:58 +0000
commite67cd078c5fea1026838d5197f8773c82e29425c (patch)
tree1b7084e7ec4cd6c97685a0b5652efc81f182cc8b /tests/bugs/snapshot
parent35da87e24132e38feeca8234757ee9d6d1fa40ff (diff)
tests: fix spurious test failure
In bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t check for peer count after starting glusterd instance on node 2 Change-Id: I3f92013719d94b6d92fb5db25efef1fb4b41d510 BUG: 1540607 Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'tests/bugs/snapshot')
-rw-r--r--tests/bugs/snapshot/bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/snapshot/bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t b/tests/bugs/snapshot/bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t
index 8dffdb21d88..22f98d2b5a7 100644
--- a/tests/bugs/snapshot/bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t
+++ b/tests/bugs/snapshot/bug-1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t
@@ -107,6 +107,7 @@ TEST start_glusterd 2
# Updates form friend should reflect as snap was deactivated while glusterd
# process was inactive and mount point should also not exist.
+EXPECT_WITHIN $PROBE_TIMEOUT 2 peer_count;
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" mounted_snaps ${V0}
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" mounted_snaps ${V1}
@@ -114,7 +115,6 @@ kill_glusterd 2
activate_snapshots
EXPECT 'Started' snapshot_status ${V0}_snap;
EXPECT 'Started' snapshot_status ${V1}_snap;
-
TEST start_glusterd 2
EXPECT_WITHIN $PROBE_TIMEOUT 2 peer_count;