Skip to content

Commit

Permalink
stable test
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox committed Oct 16, 2024
1 parent 2d9b7d9 commit 11578be
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tests/tiup-playground/test_playground.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,17 @@ sleep 3
trap "kill_all" EXIT

# wait start cluster successfully
timeout 400 grep -q "TiDB Playground Cluster is started" <(tail -f $outfile)

tiup-playground display || true

tiup-playground display | grep -qv "exit"
function wait_tiup() {
while ! grep -q "TiDB Playground Cluster is started" $outfile; do
sleep 1
done
while ! tiup-playground display; do
sleep 1
done
}
export -f tiup-playground wait_tiup
timeout 300s bash -c wait_tiup
tiup-playground display
tiup-playground scale-out --db 2
sleep 5

Expand Down

0 comments on commit 11578be

Please sign in to comment.