-
Notifications
You must be signed in to change notification settings - Fork 555
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
Panic when run tests with the latest Go 1.12 version #561
Comments
Same issue raised in #559, I believe it's caused by |
I am seeing the same failure on my projects. Was thinking about moving away from goconvey. Please fix! |
Same here. Just upgraded to Go v1.12 and getting this error. |
This should already be fixed. Try to update goconvey to latest version. |
That was it! We unknowingly had goconvey vendored so it was pointing to an
older version.
…On Tue, Mar 12, 2019 at 12:46 PM Tony Wang ***@***.***> wrote:
This should already be fixed. Try to update goconvey to latest version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#561 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ai89gU9kzBtXSNAeIBA5UCNgj0g9IQO4ks5vV-fugaJpZM4bWm4G>
.
|
|
There was an upstream breakage in goconvey. smartystreets/goconvey#561
same issue go version
go version go1.12.4 darwin/amd64 |
fixed by update goconvey go get github.com/smartystreets/goconvey |
Didn't fix me, here is what did:
Seems like this could have been solved with vendoring. |
This code could NOT work:
Actually you should do
May help other noobs like me XD |
code contains
should change to
hope this may help |
goconvey can't keep track of the test suites across goroutines automatically; this is not permitted by the way the go language/runtime work. Take a close read of the documentation for the Convey function: https://godoc.org/github.com/smartystreets/goconvey/convey#Convey In particular: Additionally, you may explicitly obtain access to the Convey context by doing:
You may need to do this if you want to pass the context through to a goroutine, or to close over the context in a handler to a library which calls your handler in a goroutine (httptest comes to mind). So, you can do So assertions inside of a goroutine by explicitly using the context object like:
Note the
Hopefully that helps. |
same issue
i tried to update goconvey and assertions in $GOPATH to the latest version, not work. |
I installed go 1.13.3 with gvm, installed goconvey on top of empty pkg and src dirs and my tests work. |
I'm using golang 1.13.10. After updating the github.com/jtolds/gls, it works for me. seems like they've fixed it jtolio/gls#14 |
update jtolio/gls will fix this issue |
I'am trying to run test of grafana 6.0.0. it works fine when I use go 1.11.5, but panics on go 1.12
It seems related with #476 and https://golang.org/doc/go1.12#compiler
https://github.com/smartystreets/goconvey/blob/master/convey/gotest/utils.go#L18
The text was updated successfully, but these errors were encountered: