From 5f9f7ac2f39a9f49bc4cfecb24e1bff0813749d6 Mon Sep 17 00:00:00 2001 From: David Kazlauskas Date: Thu, 3 Oct 2024 08:54:11 +0300 Subject: [PATCH] Fix ci tests --- .github/workflows/coprocessor-test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coprocessor-test.yml b/.github/workflows/coprocessor-test.yml index 2669da0d..c75c6472 100644 --- a/.github/workflows/coprocessor-test.yml +++ b/.github/workflows/coprocessor-test.yml @@ -33,5 +33,9 @@ jobs: # build with --release flag for faster tests cargo build --release cargo build --tests --release - COPROCESSOR_TEST_LOCAL_DB=true cargo test --release -- --nocapture + DATABASE_URL="postgres://postgres:postgres@localhost/coprocessor" cargo run --release -- --metrics-addr=127.0.0.1:9100 --run-server & + DATABASE_URL="postgres://postgres:postgres@localhost/coprocessor" cargo run --release -- --metrics-addr=127.0.0.1:9101 --run-bg-worker & + # give some time for ports to open etc + sleep 1 + COPROCESSOR_TEST_LOCALHOST=true cargo test --release -- --nocapture