testing: use t.Cleanup() for test utilities, remove gotest.tools dependency#21
testing: use t.Cleanup() for test utilities, remove gotest.tools dependency#21thaJeztah merged 2 commits intomoby:masterfrom
Conversation
|
oh, hm, interesting; I just realised this was added in Go 1.14 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 <[email protected]>
Reduce the number of dependencies for this module. Signed-off-by: Sebastiaan van Stijn <[email protected]>
c1949bb to
360619c
Compare
dims
left a comment
There was a problem hiding this comment.
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