Skip to content

Commit

Permalink
tests/cluster: the cluster maybe not up, don't check process time
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvisa committed Mar 25, 2021
1 parent 9257678 commit 6cde2c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/tiup-cluster/script/cmd_subtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,8 @@ function cmd_subtest() {
echo "$display_result" | grep "Total nodes"
echo "$display_result" | grep "Since"

# display default don't show uptime
tiup-cluster $client display $name | grep pd | awk '{print $7}' | grep '-'
# sleep 10 seconds too ensure that all components are up
sleep 10
# display with --uptime should show process uptime
tiup-cluster $client display $name --uptime | grep pd | awk '{print $7}' | grep -v '-'
tiup-cluster $client display $name --uptime

# Test rename
tiup-cluster $client rename $name "tmp-cluster-name"
Expand Down

0 comments on commit 6cde2c0

Please sign in to comment.