Skip to content

Commit

Permalink
Use Go 1.19 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhang committed Aug 18, 2022
1 parent fe3486f commit 4e045fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17.x", "1.18.x"]
go: ["1.17.x", "1.18.x", "1.19.x"]
include:
- go: 1.18.x
- go: 1.19.x
latest: true

steps:
Expand Down
3 changes: 2 additions & 1 deletion leaks.go
Expand Up @@ -72,7 +72,8 @@ func Find(options ...Option) error {
// VerifyNone marks the given TestingT as failed if any extra goroutines are
// found by Find. This is a helper method to make it easier to integrate in
// tests by doing:
// defer VerifyNone(t)
//
// defer VerifyNone(t)
func VerifyNone(t TestingT, options ...Option) {
if err := Find(options...); err != nil {
t.Error(err)
Expand Down
6 changes: 3 additions & 3 deletions testmain.go
Expand Up @@ -41,9 +41,9 @@ type TestingM interface {
// verify that there were no goroutine leaks.
// To use it, your TestMain function should look like:
//
// func TestMain(m *testing.M) {
// goleak.VerifyTestMain(m)
// }
// func TestMain(m *testing.M) {
// goleak.VerifyTestMain(m)
// }
//
// See https://golang.org/pkg/testing/#hdr-Main for more details.
//
Expand Down

0 comments on commit 4e045fd

Please sign in to comment.