testing: invalid testing.go:1343: test executed panic(nil) or runtime.Goexit: subtest may have called FailNow on a parent test
error
#58129
Labels
$ go version
I use play.golang.org website.
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?I use play.golang.org website.
What did you do?
I run this test
https://go.dev/play/p/BtIQcyQJYxR
What did you expect to see?
I expected to see this
This output is from slightly modified version of my test
https://go.dev/play/p/QeGIM_xxA4E
What did you see instead?
I see this
Perhaps I don't understand how tests work. But I was surprised and confused by the
error message. I also tried reading
testing.FailNow
documentation athttps://pkg.go.dev/testing#T.FailNow
The documentation talks about goroutines, but I don't have any goroutines in my test.
Thank you for investigating this.
Alex
The text was updated successfully, but these errors were encountered: