Small fixes

This commit is contained in:
Joona Hoikkala
2022-12-25 13:30:38 +02:00
parent 157241994f
commit f90ef442a3
3 changed files with 25 additions and 26 deletions
+2 -3
View File
@@ -3,7 +3,6 @@ package acmedns
import (
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"io/ioutil"
"os"
"syscall"
"testing"
@@ -111,7 +110,7 @@ func TestReadConfig(t *testing.T) {
}
func TestFileCheckPermissionDenied(t *testing.T) {
tmpfile, err := ioutil.TempFile("", "acmedns")
tmpfile, err := os.CreateTemp("", "acmedns")
if err != nil {
t.Error("Could not create temporary file")
}
@@ -130,7 +129,7 @@ func TestFileCheckNotExists(t *testing.T) {
}
func TestFileCheckOK(t *testing.T) {
tmpfile, err := ioutil.TempFile("", "acmedns")
tmpfile, err := os.CreateTemp("", "acmedns")
if err != nil {
t.Error("Could not create temporary file")
}