From 3c09c77269d848f5e7dd8f350a90e8d7ed760845 Mon Sep 17 00:00:00 2001 From: Bart Date: Sun, 16 Jul 2023 10:14:22 +0200 Subject: Fix deprecations of ioutil (#3370) --- src/options_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/options_test.go') 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) -- cgit v1.2.3