Skip to content

Commit

Permalink
Fix some CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrycub committed Aug 8, 2023
1 parent 86b3b7c commit 1594a73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ func TestCLI_PackDestroy_WithOverrides(t *testing.T) {
"expected exitcode 1; got %v\ncmdOut:%v", result.exitCode, result.cmdOut.String()))

// Stop job with var override
result = runTestPackCmd(t, s, []string{"destroy", testPack, "--var=" + testPack + "job_name=foo", "--registry=" + reg.Name})
result = runTestPackCmd(t, s, []string{"destroy", testPack, "--var=" + testPack + ".job_name=foo", "--registry=" + reg.Name})
must.Eq(t, 0, result.exitCode, must.Sprintf(
"expected exitcode 0; got %v\ncmdOut:%v", result.exitCode, result.cmdOut.String()))

Expand Down Expand Up @@ -488,8 +488,8 @@ func TestCLI_PackRender_MyAlias(t *testing.T) {
// output is not guaranteed to be ordered. This requires that the test handle
// either order.
expected := []string{
"child1/child1.nomad=child1",
"child2/child2.nomad=child2",
"deps_test/child1/child1.nomad=child1",
"deps_test/child2/child2.nomad=child2",
"deps_test/deps_test.nomad=deps_test",
}

Expand Down

0 comments on commit 1594a73

Please sign in to comment.