diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 6092f4a..9bf2ebd 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,4 +25,4 @@ jobs: run: go build -v ./... - name: Test - run: go test -v ./... + run: go test -short -v ./... diff --git a/database/cb_test.go b/database/cb_test.go index 5db6544..4029ebc 100644 --- a/database/cb_test.go +++ b/database/cb_test.go @@ -9,7 +9,10 @@ import ( ) func TestInitCouchbaseDb(t *testing.T) { - config, err := config.GetConfig("../settings/sample.yaml") + if testing.Short() { + t.Skip("skipping test in short mode.") + } + config, err := config.GetConfig("../settings/default.yaml") if err != nil { t.Fatalf("Error in reading config: %s", err) }