[BUG] False Positive for the MatchError matcher used to assert a non error type
in Eventually
cases
#174
Labels
bug
Something isn't working
Describe the bug
Using a function inside of
Eventually()
is not correctly handled by the linter.This is accepted:
But replacing the function declaration with a function that returns the function returns an error (see below), but is one way described even in the docs: https://onsi.github.io/gomega/#category-2-making-codeeventuallycode-assertions-on-functions and is equivalent to the in-line example
To Reproduce
Results in
Expected behavior
No linting error
**E
Environment:
Additional context
We first observed this when bumping golangci-lint, which bumped this linter from 0.16.0 to 0.18.0
Might be related to #173 since we started seeing it at the same time and both have to do with error checking.
The text was updated successfully, but these errors were encountered: