From da7675be67b281ea96850c0c7f39cfce7a19ffd3 Mon Sep 17 00:00:00 2001 From: Papa Bakary Camara Date: Wed, 25 Oct 2023 09:41:42 +0200 Subject: [PATCH] add db_name parameter to sql connection string --- .github/workflows/gotests.yaml | 2 -- tests/helpers/mock_storage.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/gotests.yaml b/.github/workflows/gotests.yaml index a3ec3b68f..53ddd56ae 100644 --- a/.github/workflows/gotests.yaml +++ b/.github/workflows/gotests.yaml @@ -2,8 +2,6 @@ name: Go tests on: push: - branches: - - master pull_request: jobs: diff --git a/tests/helpers/mock_storage.go b/tests/helpers/mock_storage.go index 6faf96dbb..aa827d86a 100644 --- a/tests/helpers/mock_storage.go +++ b/tests/helpers/mock_storage.go @@ -151,7 +151,7 @@ func MustGetPostgresStorage(tb testing.TB, init bool) (storage.Storage, func()) storageConf.PGUsername = postgres connString := fmt.Sprintf( - "host=%s port=%d user=%s password=%s sslmode=disable", + "host=%s port=%d user=%s password=%s dbname=aggregator sslmode=disable", storageConf.PGHost, storageConf.PGPort, storageConf.PGUsername, storageConf.PGPassword, )