Skip to content

Commit 8bed55e

Browse files
committed
increase wait timeout for start and restart commands in cmd_subtest
Signed-off-by: okjiang <819421878@qq.com>
1 parent 682353e commit 8bed55e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tiup-cluster/script/cmd_subtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function cmd_subtest() {
8888
id=`tiup-cluster audit | grep "deploy $name $version" | awk '{print $1}'`
8989
tiup-cluster $client audit $id
9090

91-
if ! tiup-cluster $client --yes --wait-timeout=300 start $name; then
91+
if ! tiup-cluster $client --yes --wait-timeout=900 start $name; then
9292
echo "start failed, dumping tidb-4000 logs on n1"
9393
tiup-cluster $client exec $name -N n1 --command "systemctl status tidb-4000 --no-pager -l || true"
9494
tiup-cluster $client exec $name -N n1 --command "journalctl -u tidb-4000 -n 200 --no-pager || true"
@@ -137,7 +137,7 @@ function cmd_subtest() {
137137
# let the CI to stop the job if hang forever
138138
! tiup-cluster $client --yes start $name -R prometheus,grafana
139139

140-
if ! tiup-cluster $client --yes --wait-timeout=300 restart $name; then
140+
if ! tiup-cluster $client --yes --wait-timeout=900 restart $name; then
141141
echo "restart failed, dumping tidb-4000 logs on n1"
142142
tiup-cluster $client exec $name -N n1 --command "systemctl status tidb-4000 --no-pager -l || true"
143143
tiup-cluster $client exec $name -N n1 --command "journalctl -u tidb-4000 -n 200 --no-pager || true"

0 commit comments

Comments
 (0)