From 26aa58cae0cded2bda2cd644e290ac824cabdd35 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Sat, 4 May 2024 14:45:32 +0200 Subject: [PATCH] wait longer until postgres starts on ci --- .github/workflows/ci.yml | 2 +- tests/index.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ceadfd4..bf7ae632 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/tests/index.rs b/tests/index.rs index b85421b8..6ed3d99e 100644 --- a/tests/index.rs +++ b/tests/index.rs @@ -307,8 +307,8 @@ pub fn test_config() -> AppConfig { serde_json::from_str::(&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"