Skip to content

Commit

Permalink
fix: make deploy tests resilient to local config
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiola committed Oct 9, 2023
1 parent e69903c commit d17bd9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/cmd/deploy/deploy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"fmt"
"net/http"
"net/http/httptest"
"path/filepath"
"testing"

"github.com/mia-platform/miactl/internal/clioptions"
Expand Down Expand Up @@ -51,8 +52,9 @@ func TestDeploy(t *testing.T) {
server := testCase.server
defer server.Close()
options := &clioptions.CLIOptions{
Endpoint: server.URL,
ProjectID: testCase.projectID,
Endpoint: server.URL,
ProjectID: testCase.projectID,
MiactlConfig: filepath.Join(t.TempDir(), "nofile"),
}
err := run("environmentName", options)
if testCase.expectErr {
Expand Down

0 comments on commit d17bd9c

Please sign in to comment.