summaryrefslogtreecommitdiffstats
path: root/tests/bugs/brick-uid-reset-on-volume-restart.t
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-06-15 08:40:49 +0530
committerVijay Bellur <vbellur@redhat.com>2014-06-16 11:11:28 -0700
commitd3bd3319afb208acfa905696fb0be5545f5883f6 (patch)
treebfc753e888912b084d7fba56d0bbfe8f2e98d906 /tests/bugs/brick-uid-reset-on-volume-restart.t
parent6e33d855815726bd8ebf1c7cdc3cf233ff7ac231 (diff)
tests: Avoid sleep
Change-Id: I7169be3532232754b9461c4e1b27bf6bc857f7a6 BUG: 1092850 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/8083 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/brick-uid-reset-on-volume-restart.t')
-rwxr-xr-xtests/bugs/brick-uid-reset-on-volume-restart.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/bugs/brick-uid-reset-on-volume-restart.t b/tests/bugs/brick-uid-reset-on-volume-restart.t
index 99629733f9b..26c4d00e9ae 100755
--- a/tests/bugs/brick-uid-reset-on-volume-restart.t
+++ b/tests/bugs/brick-uid-reset-on-volume-restart.t
@@ -39,7 +39,14 @@ EXPECT 101 get_gid $M0;
TEST $CLI volume stop $V0;
TEST $CLI volume start $V0;
-sleep 10;
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 2
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 3
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 4
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 5
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 6
+EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 7
EXPECT 100 get_uid $M0;
EXPECT 101 get_gid $M0;