Skip to content

Commit

Permalink
fix the tests on go versions <1.9
Browse files Browse the repository at this point in the history
fixes #415
  • Loading branch information
jvshahid committed Dec 21, 2017
1 parent 65ca40e commit 6c46eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration/fail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ var _ = Describe("Failing Specs", func() {

Ω(output).Should(ContainSubstring("a top level specify"))
Ω(output).ShouldNot(ContainSubstring("ginkgo_dsl.go"))
Ω(output).Should(ContainSubstring("fail_fixture_test.go:101"))
// depending on the go version this could be the first line of the Specify
// block (>= go1.9) or the last line of the Specify block (< go1.9)
Ω(output).Should(Or(ContainSubstring("fail_fixture_test.go:101"), ContainSubstring("fail_fixture_test.go:103")))
Ω(output).Should(ContainSubstring("fail_fixture_test.go:102"))

Ω(output).Should(ContainSubstring("0 Passed | 17 Failed"))
Expand Down

0 comments on commit 6c46eb8

Please sign in to comment.