Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fmenezes committed Sep 6, 2024
1 parent 8df4dba commit f96d56c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions test/e2e/atlas/deployments_local_nocli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ func TestDeploymentsLocalWithNoCLI(t *testing.T) {
req := require.New(t)
req.NoError(err)

t.Run("Setup", func(t *testing.T) {
var cmd *exec.Cmd

bin := "docker"
if _, err := exec.LookPath("docker"); err != nil {
bin = "podman"
}
bin := "docker"
if _, err := exec.LookPath("docker"); err != nil {
bin = "podman"
}

cmd = exec.Command(bin,
t.Run("Pull", func(t *testing.T) {
cmd := exec.Command(bin,
"pull",
"mongodb/mongodb-atlas-local",
)
r, setupErr := e2e.RunAndGetStdOut(cmd)
require.NoError(t, setupErr, string(r))
})

cmd = exec.Command(bin,
t.Run("Setup", func(t *testing.T) {
cmd := exec.Command(bin,
"run",
"-d",
"--name", deploymentName,
Expand All @@ -73,7 +73,7 @@ func TestDeploymentsLocalWithNoCLI(t *testing.T) {

cmd.Env = os.Environ()

r, setupErr = e2e.RunAndGetStdOut(cmd)
r, setupErr := e2e.RunAndGetStdOut(cmd)
require.NoError(t, setupErr, string(r))
})

Expand Down

0 comments on commit f96d56c

Please sign in to comment.