Skip to content

Commit 6312c7a

Browse files
committed
fix test on windows
1 parent 1fa2fb0 commit 6312c7a

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/go.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,12 @@ on:
77
jobs:
88

99
build:
10-
name: Build
1110
runs-on: ubuntu-latest
1211
steps:
12+
- uses: actions/checkout@v2
1313

14-
- name: Set up Go 1.12
15-
uses: actions/setup-go@v1
16-
with:
17-
go-version: 1.12
18-
id: go
19-
20-
- name: Check out code into the Go module directory
21-
uses: actions/checkout@v1
14+
- name: Set up Go
15+
uses: actions/setup-go@v2
2216

2317
- name: dep
2418
run: |

htpasswd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,7 @@ func testSystemReader(t *testing.T, name string, contents string) {
18481848
}
18491849

18501850
func testSystem(t *testing.T, name string, contents string) {
1851-
f, err := ioutil.TempFile("", "??")
1851+
f, err := ioutil.TempFile("", "gohtpasswd")
18521852
if err != nil {
18531853
t.Fatalf("Failed to make temp file: %s", err.Error())
18541854
}

0 commit comments

Comments
 (0)