You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In addition, Session satisfies the gbytes.BufferProvider interface and provides the stdout *gbytes.Buffer. This allows you to replace the first line, above, with:
Expect(session).Should(gbytes.Say("foo-out"))
However, ginkgolinter reports an error when using a function returning a session as an Eventually argument:
foo_test.go:20:3: ginkgo-linter: use a function call in Eventually. This actually checks nothing, because Eventually receives the function returned value, instead of function itself, and this value is never changed; consider using `Eventually(createSession).Should(Exit())` instead
To Reproduce
Steps to reproduce the behavior:
Run ginkgo linter on the sample above
Expected behavior
The linter should not produce an error
Environment:
OS: unrelated
Version latest (0.12.0)
The text was updated successfully, but these errors were encountered:
Describe the bug
According to gexec.Session docs
However, ginkgolinter reports an error when using a function returning a session as an
Eventually
argument:Example:
Produces the following error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The linter should not produce an error
Environment:
The text was updated successfully, but these errors were encountered: