Skip to content

Commit

Permalink
move version check to before block
Browse files Browse the repository at this point in the history
  • Loading branch information
joeybrown-sf committed Dec 4, 2024
1 parent 3479ced commit 7632a24
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions acceptance/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2186,7 +2186,9 @@ func testAcceptance(
})

it("fails with a message", func() {
h.SkipIf(t, pack.SupportsFeature(invoke.StackWarning), "stack is validated in prior versions")
it.Before(func() {
h.SkipIf(t, pack.SupportsFeature(invoke.StackWarning), "stack is validated in prior versions")
})
output, err := pack.Run(
"build", repoName,
"-p", filepath.Join("testdata", "mock_app"),
Expand All @@ -2202,7 +2204,9 @@ func testAcceptance(
})

it("succeeds with a warning", func() {
h.SkipIf(t, !pack.SupportsFeature(invoke.StackWarning), "stack is no longer validated")
it.Before(func() {
h.SkipIf(t, !pack.SupportsFeature(invoke.StackWarning), "stack is no longer validated")
})
output, err := pack.Run(
"build", repoName,
"-p", filepath.Join("testdata", "mock_app"),
Expand Down

0 comments on commit 7632a24

Please sign in to comment.