summaryrefslogtreecommitdiffstats
path: root/src/options_test.go
diff options
context:
space:
mode:
authorBart <info@bartfokker.com>2023-07-16 10:14:22 +0200
committerGitHub <noreply@github.com>2023-07-16 17:14:22 +0900
commit3c09c77269d848f5e7dd8f350a90e8d7ed760845 (patch)
treecf418e344df526d58b6a3a7fc83bcc29d81d60f9 /src/options_test.go
parent547e101f1d6bf326d286bac0fb3272738a92a67f (diff)
Fix deprecations of ioutil (#3370)
Diffstat (limited to 'src/options_test.go')
-rw-r--r--src/options_test.go4
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)