X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=daemon_test.go;fp=daemon_test.go;h=db8401351831c3026d2e391f3719ba3bf1800e13;hp=bcd8326badd139d4686bc129fa1676f25f5ed2c6;hb=6f9d7fae374e5ada6c33f585db748f23fbc49f91;hpb=14b38769cdece09d57423873043372ff724fc249 diff --git a/daemon_test.go b/daemon_test.go index bcd8326..db84013 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -18,7 +18,6 @@ along with this program. If not, see . package main import ( - "io/ioutil" "os" "strings" "testing" @@ -113,7 +112,7 @@ func TestRegistrationWorkflow(t *testing.T) { } func TestMotd(t *testing.T) { - fd, err := ioutil.TempFile("", "motd") + fd, err := os.CreateTemp("", "motd") if err != nil { t.Fatalf("can not create temporary file: %v", err) }