diff options
Diffstat (limited to 'tests/basic/tier/tierd_check.t')
-rw-r--r-- | tests/basic/tier/tierd_check.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/basic/tier/tierd_check.t b/tests/basic/tier/tierd_check.t index 1f88ea0b72e..6aef1048ee2 100644 --- a/tests/basic/tier/tierd_check.t +++ b/tests/basic/tier/tierd_check.t @@ -24,7 +24,7 @@ function tier_status () { } function tier_deamon_kill () { -pkill -f "rebalance/$V0" +pkill -f "tierd/$V0" echo "$?" } @@ -40,6 +40,8 @@ EXPECT_WITHIN $PROBE_TIMEOUT 2 check_peers; #Create and start a tiered volume create_dist_tier_vol +wait_for_tier_start + EXPECT_WITHIN $PROCESS_UP_TIMEOUT 0 tier_daemon_check EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" tier_status @@ -48,6 +50,8 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT 0 tier_deamon_kill TEST $CLI_1 volume tier $V0 start +wait_for_tier_start + EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" tier_daemon_check EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" tier_status @@ -56,6 +60,8 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" tier_deamon_kill TEST $CLI_3 volume tier $V0 start force +wait_for_tier_start + EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" tier_daemon_check #The pattern progress should occur twice only. @@ -79,6 +85,8 @@ TEST $CLI_3 volume stop $V0 TEST $CLI_3 volume start $V0 +wait_for_tier_start + EXPECT_WITHIN $PROCESS_UP_TIMEOUT "2" tier_status #check for detach start and stop |