diff options
author | Bart <info@bartfokker.com> | 2023-07-16 10:14:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 17:14:22 +0900 |
commit | 3c09c77269d848f5e7dd8f350a90e8d7ed760845 (patch) | |
tree | cf418e344df526d58b6a3a7fc83bcc29d81d60f9 /src/options_test.go | |
parent | 547e101f1d6bf326d286bac0fb3272738a92a67f (diff) |
Fix deprecations of ioutil (#3370)
Diffstat (limited to 'src/options_test.go')
-rw-r--r-- | src/options_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options_test.go b/src/options_test.go index 4e300db7..99873337 100644 --- a/src/options_test.go +++ b/src/options_test.go @@ -2,7 +2,7 @@ package fzf import ( "fmt" - "io/ioutil" + "os" "testing" "github.com/junegunn/fzf/src/tui" @@ -357,7 +357,7 @@ func TestDefaultCtrlNP(t *testing.T) { check([]string{"--bind=ctrl-n:accept"}, tui.CtrlN, actAccept) check([]string{"--bind=ctrl-p:accept"}, tui.CtrlP, actAccept) - f, _ := ioutil.TempFile("", "fzf-history") + f, _ := os.CreateTemp("", "fzf-history") f.Close() hist := "--history=" + f.Name() check([]string{hist}, tui.CtrlN, actNextHistory) |