Skip to content

Commit c0f241b

Browse files
committed
windows pipeline fix and more descriptive error message
1 parent 9eac5a4 commit c0f241b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ jobs:
8383
test_on_windows:
8484
name: Test on Windows
8585
runs-on: windows-latest
86+
env:
87+
TEST_DB_URL: postgres://postgres:testpass@localhost:5432/postgres
88+
services:
89+
postgres:
90+
image: postgres:16-alpine
91+
env:
92+
POSTGRES_USER: postgres
93+
POSTGRES_PASSWORD: testpass
94+
POSTGRES_DB: postgres
95+
ports:
96+
- 5432:5432
8697
steps:
8798
- name: Checkout the source code
8899
uses: actions/checkout@v4

database/src/tests/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ where
9898
let ctx = f(ctx).await.expect("Test failed");
9999
ctx.finish().await;
100100
} else {
101-
panic!("Skipping test because TEST_DB_URL was not passed");
101+
panic!("Aborting; `TEST_DB_URL` was not passed");
102102
}
103103
}

0 commit comments

Comments
 (0)