Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Oct 20, 2024
1 parent 99fef8a commit 07be6ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/actions/setup_databend_cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
- name: Nginx Setup
shell: bash
run: |
docker run -d --network host --name nginx-lb -p 8010:80 nginx
docker run -d --network host --name nginx-lb nginx
docker exec -i nginx-lb bash -c 'cat > /etc/nginx/nginx.conf <<EOF
events {
Expand All @@ -54,15 +54,18 @@ runs:
}
server {
listen 80;
listen 8010;
location / {
proxy_pass http://backend;
proxy_set_header X-DATABEND-ROUTE-HINT $http_x_databend_route_hint;
}
}
}
EOF'
docker exec nginx-lb nginx -s reload
- name: Download binary and extract into target directory
shell: bash
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

@Test(timeOut = 10000)
public class TestClientIT {
static String port = System.getenv("DATABEND_TEST_CONN_PORT") != null ? System.getenv("DATABEND_TEST_CONN_PORT") : "8000";
static String port = System.getenv("DATABEND_TEST_CONN_PORT") != null ? System.getenv("DATABEND_TEST_CONN_PORT").trim() : "8000";

// please setup a local databend cluster before running this test, and create databend
private static final String DATABEND_HOST = "http://databend:databend@127.0.0.1:" + port;
Expand Down
2 changes: 1 addition & 1 deletion databend-jdbc/src/test/java/com/databend/jdbc/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class Utils {

static String port = System.getenv("DATABEND_TEST_CONN_PORT") != null ? System.getenv("DATABEND_TEST_CONN_PORT") : "8000";
static String port = System.getenv("DATABEND_TEST_CONN_PORT") != null ? System.getenv("DATABEND_TEST_CONN_PORT").trim() : "8000";

static String username = "databend";
static String password = "databend";
Expand Down

0 comments on commit 07be6ad

Please sign in to comment.