build: turn off postgres unit tests (build time test)

Change-Id: Iecb018791d9533c354375f9b7865c83ba32092f5
This commit is contained in:
Márton Elek 2022-07-07 18:59:18 +02:00 committed by Storj Robot
parent 36ae8d4bb9
commit 0cc054e931
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ pipeline {
'cockroach://root@localhost:26259/testcockroach?sslmode=disable'
STORJ_TEST_COCKROACH_NODROP = 'true'
STORJ_TEST_COCKROACH_ALT = 'cockroach://root@localhost:26260/testcockroach?sslmode=disable'
STORJ_TEST_POSTGRES = 'postgres://postgres@localhost/teststorj?sslmode=disable'
STORJ_TEST_POSTGRES = 'omit'
STORJ_TEST_LOG_LEVEL = 'info'
COVERFLAGS = "${ env.BRANCH_NAME == 'main' ? '-coverprofile=.build/coverprofile -coverpkg=storj.io/storj/private/...,storj.io/storj/satellite/...,storj.io/storj/storage/...,storj.io/storj/storagenode/...,storj.io/storj/versioncontrol/...' : ''}"
}

View File

@ -122,7 +122,7 @@ func Run(t *testing.T, test func(ctx *testcontext.Context, t *testing.T, db mult
t.Run(dbConfig.Name, func(t *testing.T) {
t.Parallel()
if dbConfig.URL == "" {
if dbConfig.URL == "" || dbConfig.URL == "omit" {
t.Skipf("Database %s connection string not provided. %s", dbConfig.Name, dbConfig.Message)
}