wait longer until postgres starts on ci
This commit is contained in:
@@ -43,7 +43,7 @@ jobs:
|
||||
- name: Set up cargo cache
|
||||
uses: Swatinem/rust-cache@378c8285a4eaf12899d11bea686a763e906956af
|
||||
- name: Start database container
|
||||
run: docker-compose up -d ${{ matrix.database }}
|
||||
run: docker compose up --wait ${{ matrix.database }}
|
||||
- name: Run tests against ${{ matrix.database }}
|
||||
run: cargo test
|
||||
env:
|
||||
|
||||
+2
-2
@@ -307,8 +307,8 @@ pub fn test_config() -> AppConfig {
|
||||
serde_json::from_str::<AppConfig>(&format!(
|
||||
r#"{{
|
||||
"database_url": "{}",
|
||||
"database_connection_retries": 2,
|
||||
"database_connection_acquire_timeout_seconds": 10,
|
||||
"database_connection_retries": 3,
|
||||
"database_connection_acquire_timeout_seconds": 15,
|
||||
"allow_exec": true,
|
||||
"max_uploaded_file_size": 12345,
|
||||
"listen_on": "111.111.111.111:1"
|
||||
|
||||
Reference in New Issue
Block a user