From 4b18826de7fda26b66ca3123a28830a9c8d72ec4 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Tue, 7 Nov 2017 16:20:27 +0530 Subject: tests: fix spurious failure in bug-1345727-bricks-stop-on-no-quorum-validation.t Add peer_count check before checking for brick status Change-Id: I0179ec29729ab6bbc3571eb6ffd631b7b0d15f7c BUG: 1510415 Signed-off-by: Atin Mukherjee --- tests/bugs/glusterd/bug-1345727-bricks-stop-on-no-quorum-validation.t | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/bugs/glusterd/bug-1345727-bricks-stop-on-no-quorum-validation.t b/tests/bugs/glusterd/bug-1345727-bricks-stop-on-no-quorum-validation.t index 34959f5b0c6..e3258b29277 100644 --- a/tests/bugs/glusterd/bug-1345727-bricks-stop-on-no-quorum-validation.t +++ b/tests/bugs/glusterd/bug-1345727-bricks-stop-on-no-quorum-validation.t @@ -28,6 +28,7 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" brick_up_status_1 $V0 $H3 $B3/${V0}3 # Bring down 2nd and 3rd glusterd TEST kill_glusterd 2 TEST kill_glusterd 3 +EXPECT_WITHIN $PROBE_TIMEOUT 0 peer_count # Server quorum is not met. Brick on 1st node must be down EXPECT_WITHIN $PROCESS_DOWN_TIMEOUT "0" brick_up_status_1 $V0 $H1 $B1/${V0}1 -- cgit