Skip to content

Commit

Permalink
e2e: serial: more precise skip location
Browse files Browse the repository at this point in the history
fix our helper to report which e2e code is skipping
- not where the actual ginkgo.Skip is ultimately invoked.

Signed-off-by: Francesco Romani <[email protected]>
ffromani committed Nov 13, 2023
1 parent 5b8a60c commit c173f45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/utils/fixture/fixture.go
Original file line number Diff line number Diff line change
@@ -136,11 +136,12 @@ func Teardown(ft *Fixture) error {

func Skip(ft *Fixture, message string) {
ft.Skipped = true
ginkgo.Skip(message)
ginkgo.Skip(message, 1)
}

func Skipf(ft *Fixture, format string, args ...interface{}) {
Skip(ft, fmt.Sprintf(format, args...))
ft.Skipped = true
ginkgo.Skip(fmt.Sprintf(format, args...), 1)
}

func Cooldown(ft *Fixture) {

0 comments on commit c173f45

Please sign in to comment.