diff --git a/.github/workflows/gotests.yaml b/.github/workflows/gotests.yaml index a3ec3b68..9482d72c 100644 --- a/.github/workflows/gotests.yaml +++ b/.github/workflows/gotests.yaml @@ -2,13 +2,12 @@ name: Go tests on: push: - branches: - - master pull_request: jobs: gotests: runs-on: ubuntu-20.04 + timeout-minutes: 60 strategy: matrix: go-version: diff --git a/tests/helpers/mock_storage.go b/tests/helpers/mock_storage.go index 6faf96db..aa827d86 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, )