Skip to content

Commit 527b64b

Browse files
committed
ci: fix test.
1 parent 7af3f05 commit 527b64b

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/test_cluster.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
- name: check nginx
4646
run: |
47-
curl -u 'databend:databend' -X POST "http://localhost:8010/v1/query" \
47+
curl -u 'databend:databend' -X POST "http://localhost:8000/v1/query" \
4848
-H 'Content-Type: application/json' \
4949
-d '{"sql": "select 1", "pagination": { "wait_time_secs": 5 }}' || true
5050
env:
@@ -57,4 +57,4 @@ jobs:
5757
run: mvn test -DexcludedGroups=FLAKY
5858
env:
5959
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
60-
DATABEND_TEST_CONN_PORT: 8010
60+
DATABEND_TEST_CONN_PORT: 8000

databend-jdbc/src/test/java/com/databend/jdbc/TestBasicDriver.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void testSchema() {
9090
}
9191
}
9292

93-
@Test
93+
@Test(groups = {"IT"})
9494
public void testCreateUserFunction() throws SQLException {
9595
String s = "create or replace function add_plus(int,int)\n" +
9696
"returns int\n" +
@@ -119,7 +119,7 @@ public void testCreateUserFunction() throws SQLException {
119119
}
120120
}
121121

122-
@Test
122+
@Test(groups = {"IT"})
123123
public void TestMergeinto() throws SQLException {
124124
try (Connection connection = Utils.createConnection()) {
125125
DatabendStatement statement = (DatabendStatement) connection.createStatement();
@@ -162,7 +162,7 @@ public void TestMergeinto() throws SQLException {
162162
}
163163
}
164164

165-
@Test
165+
@Test(groups = {"IT"})
166166
public void testWriteDouble() throws SQLException {
167167
try (Connection connection = Utils.createConnection()) {
168168
DatabendStatement statement = (DatabendStatement) connection.createStatement();
@@ -194,7 +194,7 @@ public void testWriteDouble() throws SQLException {
194194
}
195195
}
196196

197-
@Test
197+
@Test(groups = {"IT"})
198198
public void testDefaultSelectNullValue() throws SQLException {
199199
try (Connection connection = Utils.createConnection()) {
200200
DatabendStatement statement = (DatabendStatement) connection.createStatement();
@@ -246,7 +246,7 @@ public void testBasicWithProperties() throws SQLException {
246246
}
247247
}
248248

249-
@Test
249+
@Test(groups = {"IT"})
250250
public void testPrepareStatementQuery() throws SQLException {
251251
String sql = "SELECT number from numbers(100) where number = ? or number = ?";
252252
Connection conn = Utils.createConnection("test_basic_driver");

scripts/ci/nginx_hash.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ http {
1010
upstream backend1 {
1111
hash $http_x_databend_route_hint consistent;
1212

13-
server 127.0.0.1:8000;
13+
server 127.0.0.1:8001;
1414
server 127.0.0.1:8002;
1515
server 127.0.0.1:8003;
1616
}
1717

1818
server {
19-
listen 8010;
19+
listen 8000;
2020

2121
location / {
2222
proxy_pass http://$backend;

0 commit comments

Comments
 (0)