Skip to content

Commit 82b4069

Browse files
authored
Fixed failing tests (#42)
1 parent 5645fca commit 82b4069

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Go
1515
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
1616
with:
17-
go-version: '1.13'
17+
go-version: '1.24'
1818
- name: Run golanci-lint
1919
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
2020
- name: Run test and generate coverage report

.golangci.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/hashicorp/go-cleanhttp
22

3-
go 1.13
3+
go 1.24

handlers_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ import (
1212

1313
func TestPrintablePathCheckHandler(t *testing.T) {
1414
getTestHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
15-
fmt.Fprintln(w, "Hello, client")
15+
_, err := fmt.Fprintln(w, "Hello, client")
16+
if err != nil {
17+
t.Fatal(err)
18+
}
1619
})
1720

1821
cases := map[string]struct {

0 commit comments

Comments
 (0)