aboutsummaryrefslogtreecommitdiff
path: root/htpasswd_test.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--htpasswd_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/htpasswd_test.go b/htpasswd_test.go
index 869883b..fe3a46e 100644
--- a/htpasswd_test.go
+++ b/htpasswd_test.go
@@ -1,7 +1,6 @@
package restserver
import (
- "io/ioutil"
"os"
"testing"
)
@@ -12,7 +11,7 @@ func TestValidate(t *testing.T) {
rawPwd := "test"
wrongPwd := "wrong"
- tmpfile, err := ioutil.TempFile("", "rest-validate-")
+ tmpfile, err := os.CreateTemp("", "rest-validate-")
if err != nil {
t.Fatal(err)
}