Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flaky interrupt test fails with wrong exit code #464

@williammartin

Description

@williammartin

Occasionally when running the ginkgo integration tests I see:

• Failure in Spec Setup (BeforeEach) [5.731 seconds]
Interrupt when interrupting a suite [BeforeEach] should emit the contents of the GinkgoWriter 
/tmp/build/a94a8fe5/gopath/src/github.com/onsi/ginkgo/integration/interrupt_test.go:41

  No future change is possible.  Bailing out early after 0.071s.
  Expected
      <int>: 130
  to match exit code:
      <int>: 1

  /tmp/build/a94a8fe5/gopath/src/github.com/onsi/ginkgo/integration/interrupt_test.go:38

  Full Stack Trace
  	/tmp/build/a94a8fe5/gopath/src/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go:135 +0x53c
  github.com/onsi/gomega/internal/asyncassertion.(*AsyncAssertion).Should(0xc4200a7e80, 0xab58a0, 0xc4204270c0, 0x0, 0x0, 0x0, 0xc4200a7e80)
  	/tmp/build/a94a8fe5/gopath/src/github.com/onsi/gomega/internal/asyncassertion/async_assertion.go:48 +0x77
  github.com/onsi/ginkgo/integration_test.glob..func11.2.1()
  	/usr/local/go/src/testing/testing.go:777 +0x16e
  created by testing.(*T).Run
  	/usr/local/go/src/testing/testing.go:824 +0x565

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions