diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-11 20:56:45 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-11 20:56:45 -0400 |
| commit | 4dd6aa40aa6168959bef0e9d2356374a88e8c60b (patch) | |
| tree | 802ebc08f4b6d1976640bfb04711c3be127cb919 | |
| parent | Tweak table cleanup logic for tests (diff) | |
| download | cli-4dd6aa40aa6168959bef0e9d2356374a88e8c60b.zip | |
Use p 1 for github workflow
| -rw-r--r-- | .github/workflows/test.yml | 2 | ||||
| -rw-r--r-- | internal/storage/mssql_test.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4a5f8ec..8476a19 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,4 +25,4 @@ jobs: run: | env $(cat ".env.${{ matrix.db.name }}" | xargs) docker compose -f "docker-compose.${{ matrix.db.name }}.yml" up -d - name: Run Tests - run: env $(cat ".env.${{ matrix.db.name }}" | xargs) go test -tags "${{ matrix.db.name }}" -cover ./... + run: env $(cat ".env.${{ matrix.db.name }}" | xargs) go test -p 1 -tags "${{ matrix.db.name }}" -cover ./... diff --git a/internal/storage/mssql_test.go b/internal/storage/mssql_test.go index 4a99ffd..2232860 100644 --- a/internal/storage/mssql_test.go +++ b/internal/storage/mssql_test.go @@ -49,6 +49,8 @@ func TestMSSQL_TableExists(t *testing.T) { adapter := storage.MSSQLAdapter{} db, err := sql.Open("sqlserver", adapter.CreateDSN(cfg)) assert.Nil(t, err) + _, err = db.Exec("DROP TABLE IF EXISTS tmp;") + assert.Nil(t, err) t.Cleanup(func() { _, err = db.Exec("DROP TABLE IF EXISTS tmp;") assert.Nil(t, err) |