Skip to content

Commit

Permalink
ci: fix flaky test #16935
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Nov 26, 2024
1 parent 105809b commit 6ca1c12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{"code":1025,"message":"error: \n --> SQL:1:15\n |\n1 | select * from system.t1\n | ^^^^^^^^^ Unknown table \"default\".system.t1 .\n\n"}
"Failed"
{"code":1065,"message":"error: \n --> SQL:1:8\n |\n1 | select a\n | ^ column a doesn't exist\n\n"}
{"error":{"code":400,"message":"parse error: key must be a string at line 1 column 2"}}
{"error":{"code":404,"message":"not found"}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CURDIR"/../../../shell_env.sh

echo "drop table if exists t1;" | $BENDSQL_CLIENT_CONNECT

curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{"sql": "select * from system.t1", "pagination": { "wait_time_secs": 2}}' -u root: | jq -c ".error"
curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{"sql": "select a", "pagination": { "wait_time_secs": 5}}' -u root: | jq -c ".state",".error"

curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{sql": "select * from tx", "pagination": { "wait_time_secs": 2}}' -u root:
echo ""
Expand Down

0 comments on commit 6ca1c12

Please sign in to comment.