diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26ffdc2..112172d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,12 +20,11 @@ jobs: postgres: image: postgres:14-alpine env: - TEST_DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable&pool_max_conns=2 POSTGRES_PASSWORD: postgres options: >- --health-cmd pg_isready --health-interval 10s - --health-timeout 5s + --health-timeout 10s --health-retries 5 redis: image: redis @@ -42,6 +41,7 @@ jobs: - name: test run: make mod test coverage env: + TEST_DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable&pool_max_conns=8 TEST_REDIS_URL: redis:6379 - name: upload results uses: actions/upload-artifact@v3 diff --git a/backends/postgres/postgres_backend_test.go b/backends/postgres/postgres_backend_test.go index 17692e2..d518403 100644 --- a/backends/postgres/postgres_backend_test.go +++ b/backends/postgres/postgres_backend_test.go @@ -165,7 +165,7 @@ func TestMultipleProcessors(t *testing.T) { var execCount uint32 var wg sync.WaitGroup - count := 8 + count := 4 neos := make([]neoq.Neoq, 0, count) // Create several neoq processors such that we can enqueue several jobs and have them consumed by multiple different // workers. We want to make sure that a job is not processed twice in a pool of many different neoq workers.