From e67cd078c5fea1026838d5197f8773c82e29425c Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Mon, 12 Feb 2018 07:48:20 +0530 Subject: 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 --- ...1482023-snpashot-issue-with-other-processes-accessing-mounted-path.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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; -- cgit