From 0cc054e9310e548e02e9763c8dbed7acc77f3275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Thu, 7 Jul 2022 18:59:18 +0200 Subject: [PATCH] build: turn off postgres unit tests (build time test) Change-Id: Iecb018791d9533c354375f9b7865c83ba32092f5 --- Jenkinsfile.verify | 2 +- multinode/multinodedb/multinodedbtest/run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.verify b/Jenkinsfile.verify index 9dba01ac2..6142cb331 100644 --- a/Jenkinsfile.verify +++ b/Jenkinsfile.verify @@ -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/...' : ''}" } diff --git a/multinode/multinodedb/multinodedbtest/run.go b/multinode/multinodedb/multinodedbtest/run.go index d8389daa1..5e2a136d8 100644 --- a/multinode/multinodedb/multinodedbtest/run.go +++ b/multinode/multinodedb/multinodedbtest/run.go @@ -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) }