Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occasionaly test failure with message expected to eventually be falsy, got <0> #845

Closed
1 task done
manuyavuz-pointr opened this issue Nov 25, 2020 · 1 comment
Closed
1 task done

Comments

@manuyavuz-pointr
Copy link

  • I have read CONTRIBUTING and have done my best to follow them.

What did you do?

I have a UI test case with following expectation:

expect(self.app.keyboards.firstMatch.exists).withTimeout(5).toEventually(beFalsy());

This code occasionally fails on CI builds (when run with address sanitizer enabled) with the following failure message:

expected to eventually be falsy, got <0>

What did you expect to happen?

This error should never happen in my opinion as the expression in expect() returns a BOOL, and matcher is beFalsy(), which should both match with false boolean values and nil values as it's implicitly falsy.

What actually happened instead?

This code occasionally fails on CI builds (when run with address sanitizer enabled) with the following failure message:

expected to eventually be falsy, got <0>

Environment

List the software versions you're using:

  • Nimble: 9.0.0
  • Xcode Version: 12.0 (Open Xcode; In menubar: Xcode > About Xcode)
  • Swift Version: Xcode Default (Open Xcode Preferences; Components > Toolchains. If none, use Xcode Default.)

Please also mention which package manager you used and its version. Delete the
other package managers in this list:

  • Cocoapods: 1.10.0 (Use pod --version in Terminal)

Project that demonstrates the issue

I don't have a project as I could not reproduce the issue locally yet.

Any guess how this could happen?

Thanks!

@ikesyo
Copy link
Member

ikesyo commented Feb 5, 2021

Duplicate of #360.

@ikesyo ikesyo closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants