Skip to content

Commit 1bf60d7

Browse files
committed
Increase timeout and upload test reports when build failed
1 parent 4748b8a commit 1bf60d7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/build.yml

+9
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- clickhouse: "21.8"
4343
protocol: grpc
4444
fail-fast: false
45+
timeout-minutes: 45
4546
name: Build against ClickHouse ${{ matrix.clickhouse }} (${{ matrix.protocol }})
4647
steps:
4748
- name: Check out Git repository
@@ -90,3 +91,11 @@ jobs:
9091
- name: Build
9192
run: |
9293
mvn --batch-mode --update-snapshots -Drelease -DclickhouseVersion=${{ matrix.clickhouse }} -Dprotocol=${{ matrix.protocol }} verify
94+
- name: Upload test results
95+
uses: actions/upload-artifact@v2
96+
if: failure()
97+
with:
98+
name: result ${{ github.job }}
99+
path: |
100+
**/target/failsafe-reports
101+
**/target/surefire-reports

clickhouse-client/src/test/java/com/clickhouse/client/stream/NonBlockingPipedOutputStreamTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void testWriteBytes() throws Exception {
204204

205205
@Test(groups = { "unit" })
206206
public void testPipedStream() throws Exception {
207-
final int timeout = 10000;
207+
final int timeout = 60000;
208208
ExecutorService executor = Executors.newFixedThreadPool(2);
209209
for (int bufferSize = -1; bufferSize < 10; bufferSize++) {
210210
for (int queueLength = -1; queueLength < 10; queueLength++) {

0 commit comments

Comments
 (0)