diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b166ff2..22f771f 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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: diff --git a/leaks.go b/leaks.go index 468dbaf..f44dc25 100644 --- a/leaks.go +++ b/leaks.go @@ -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) diff --git a/testmain.go b/testmain.go index 316f6e1..e7d190b 100644 --- a/testmain.go +++ b/testmain.go @@ -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. //