Skip to content

Commit

Permalink
CI: Test against Go 1.17 (#67)
Browse files Browse the repository at this point in the history
Start testing against Go 1.17.

Changes were also made to a couple of test files to make them pass the linters in Go 1.17
  • Loading branch information
sywhang authored Sep 27, 2021
1 parent 1e9de54 commit 0a774d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.14.x", "1.15.x", "1.16.x"]
go: ["1.14.x", "1.15.x", "1.16.x", "1.17.x"]
include:
- go: 1.16.x
- go: 1.17.x
latest: true

steps:
Expand Down
2 changes: 1 addition & 1 deletion signal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestNoLeaks(t *testing.T) {
require.NoError(t, goleak.Find(), "Found leaks caused by signal import")

// Register some signal handlers and ensure there's no leaks.
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt)
require.NoError(t, goleak.Find(), "Found leaks caused by signal.Notify")

Expand Down
1 change: 1 addition & 0 deletions tools_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

//go:build tools
// +build tools

package goleak
Expand Down

0 comments on commit 0a774d4

Please sign in to comment.