File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import "strings"
5
5
// Opening an exclusive-use file returns an error.
6
6
// The expected error strings are:
7
7
//
8
- // - "open/create -- file is locked" (cwfs, kfs)
9
- // - "exclusive lock" (fossil)
10
- // - "exclusive use file already open" (ramfs)
8
+ // - "open/create -- file is locked" (cwfs, kfs)
9
+ // - "exclusive lock" (fossil)
10
+ // - "exclusive use file already open" (ramfs)
11
11
//
12
12
// See https://github.com/golang/go/blob/go1.15rc1/src/cmd/go/internal/lockedfile/lockedfile_plan9.go#L16
13
13
var lockedErrStrings = [... ]string {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package fslock_test
2
2
3
3
import (
4
4
"bufio"
5
- "io/ioutil"
6
5
"os"
7
6
"os/exec"
8
7
"path"
@@ -117,7 +116,7 @@ func TestLockedByOthers(t *testing.T) {
117
116
return
118
117
}
119
118
120
- confdir , err := ioutil . TempDir ("" , "go-fs-lock-test" )
119
+ confdir , err := os . MkdirTemp ("" , "go-fs-lock-test" )
121
120
if err != nil {
122
121
t .Fatalf ("creating temporary directory: %v" , err )
123
122
}
You can’t perform that action at this time.
0 commit comments