Skip to content

Commit 9a16117

Browse files
committed
limit and report test times
1 parent 285ea71 commit 9a16117

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ jobs:
5555
if: failure()
5656
run: docker compose logs ${{ matrix.database }}
5757
- name: Run tests against ${{ matrix.database }}
58-
timeout-minutes: 2
59-
run: cargo test
58+
timeout-minutes: 5
59+
run: cargo +nightly test -- -Z unstable-options --ensure-time
6060
env:
6161
DATABASE_URL: ${{ matrix.database }}://root:Password123!@127.0.0.1/sqlpage
6262
RUST_BACKTRACE: 1
6363
RUST_LOG: sqlpage=debug
64+
RUST_TEST_TIME_UNIT: 100,1000
65+
RUST_TEST_TIME_INTEGRATION: 1000,10000
6466

6567
windows_test:
6668
runs-on: windows-latest

0 commit comments

Comments
 (0)