Skip to content

Commit

Permalink
fix: unit/integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rangoo94 committed Oct 14, 2024
1 parent 30992cf commit 1a42364
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/testworkflow-toolkit/artifacts/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/golang/mock/gomock"
Expand All @@ -17,6 +18,9 @@ import (
)

func TestHandler_CloudUploader(t *testing.T) {
// Populate empty internal configuration, as it is required for the Toolkit
_ = os.Setenv("TK_CFG", "{}")

mockCtrl := gomock.NewController(t)
defer mockCtrl.Finish()

Expand Down
4 changes: 4 additions & 0 deletions cmd/testworkflow-toolkit/commands/artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"io/fs"
"net/http"
"net/http/httptest"
"os"
"testing"

"github.com/kubeshop/testkube/pkg/cloud/data/testworkflow"
Expand All @@ -27,6 +28,9 @@ var testDataFixtures embed.FS
func TestRun_Integration(t *testing.T) {
test.IntegrationTest(t)

// Populate empty internal configuration, as it is required for the Toolkit
_ = os.Setenv("TK_CFG", "{}")

mockCtrl := gomock.NewController(t)
defer mockCtrl.Finish()

Expand Down

0 comments on commit 1a42364

Please sign in to comment.