-
Notifications
You must be signed in to change notification settings - Fork 31
testing: use t.Cleanup() for test utilities, remove gotest.tools dependency #21
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
Conversation
oh, hm, interesting; I just realised this was added in Go 1.14 https://github.com/golang/go/blob/go1.14/src/testing/testing.go#L547 so why does this work on go 1.12 and 1.13? 🤔 https://github.com/golang/go/blob/go1.12/src/testing/testing.go#L498 |
e212a10
to
57d64e9
Compare
rebased, now that #19 was merged; this should now likely fail on Go1.13, but pass on Go1.14 and 1.15 |
Hmmm.... doesn't fail. I'm confused |
What the???? It's showing that it's installing Go 1.13, but it's actually running Go 1.14.10?
|
Oh!! I know what's wrong; look at
And this is how we run our tests: run: sudo go test -v ./... We're using |
Getting closer;
|
1e7fd93
to
bb2f9f1
Compare
Looks like
|
bb2f9f1
to
c3e84fc
Compare
Looks to be the here's results of running without and with Without
Whereas with
|
c3e84fc
to
ea21143
Compare
Success! It now properly fails with Go 1.13, but succeeds on Go 1.14 and Go 1.15 (as expected);
|
ea21143
to
6744f26
Compare
a9d63ce
to
3c61562
Compare
e955174
to
fd17c6f
Compare
fd17c6f
to
7a25600
Compare
7a25600
to
c1949bb
Compare
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Reduce the number of dependencies for this module. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
c1949bb
to
360619c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! nice clean ups in go.mod/sum
Let me bring this one one 👍 |
LOL; cleaning up branches, found this one that I apparently forgot about