Skip to content

Commit

Permalink
tests: use python3 to run http_api test to fix failed integration_tes…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 21, 2022
1 parent 060e880 commit 48e2761
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/integration_tests/http_api/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function run() {
return
fi

sudo pip install -U requests==2.26.0
sudo python3 -m pip install -U requests==2.26.0

rm -rf $WORK_DIR && mkdir -p $WORK_DIR

Expand Down Expand Up @@ -59,15 +59,15 @@ function run() {

SINK_URI="mysql://normal:[email protected]:3306/"

python $CUR/util/test_case.py check_health $TLS_DIR
python $CUR/util/test_case.py get_status $TLS_DIR
python3 $CUR/util/test_case.py check_health $TLS_DIR
python3 $CUR/util/test_case.py get_status $TLS_DIR

python $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI"
python3 $CUR/util/test_case.py create_changefeed $TLS_DIR "$SINK_URI"
# wait for changefeed created
sleep 2

# test processor query with no attached tables
python $CUR/util/test_case.py get_processor $TLS_DIR
python3 $CUR/util/test_case.py get_processor $TLS_DIR

run_sql "CREATE table test.simple0(id int primary key, val int);"
run_sql "CREATE table test.\`simple-dash\`(id int primary key, val int);"
Expand Down Expand Up @@ -108,7 +108,7 @@ function run() {
)

for case in ${sequential_cases[@]}; do
python $CUR/util/test_case.py "$case" $TLS_DIR
python3 $CUR/util/test_case.py "$case" $TLS_DIR
done

cleanup_process $CDC_BINARY
Expand Down

0 comments on commit 48e2761

Please sign in to comment.