@@ -120,8 +120,6 @@ jobs:
120120 run : |
121121 nohup docker compose up -d --build db-migration > /tmp/db-init.log 2>&1 &
122122 working-directory : coprocessor/fhevm-engine/tfhe-worker
123- env :
124- DB_HOST_PORT : 15432
125123
126124 - name : Setup Rust toolchain file
127125 run : cp coprocessor/fhevm-engine/rust-toolchain.toml .
@@ -163,7 +161,7 @@ jobs:
163161
164162 - name : Compile tests with coverage instrumentation
165163 env :
166- DATABASE_URL : postgresql://postgres:postgres@localhost:15432 /coprocessor
164+ DATABASE_URL : postgresql://postgres:postgres@localhost:5432 /coprocessor
167165 SQLX_OFFLINE : ' true'
168166 TEST_PACKAGE : ${{ matrix.package }}
169167 run : |
@@ -201,23 +199,9 @@ jobs:
201199 fi
202200 echo "Database migration completed"
203201
204- - name : Verify database is accessible
205- if : ${{ matrix.needs_db }}
206- run : |
207- echo "=== Docker containers ==="
208- docker ps -a
209- echo "=== Port mapping for db container ==="
210- docker port db || true
211- echo "=== db-init.log ==="
212- cat /tmp/db-init.log || true
213- echo "=== Checking localhost:15432 ==="
214- docker exec db psql -U postgres -c '\l' || true
215- echo "=== Checking from host ==="
216- PGPASSWORD=postgres psql -h localhost -p 15432 -U postgres -c '\l' 2>&1 || true
217-
218202 - name : Run tests with coverage
219203 env :
220- DATABASE_URL : postgresql://postgres:postgres@localhost:15432 /coprocessor
204+ DATABASE_URL : postgresql://postgres:postgres@localhost:5432 /coprocessor
221205 SQLX_OFFLINE : ' true'
222206 COPROCESSOR_TEST_LOCALHOST : ' 1'
223207 TEST_GLOBAL_LOCALSTACK : ${{ matrix.needs_localstack && '1' || '0' }}
0 commit comments