X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=daemon_test.go;h=db8401351831c3026d2e391f3719ba3bf1800e13;hb=6f9d7fae374e5ada6c33f585db748f23fbc49f91;hp=e6050f6b8fd2a28e5481d86666ddbf95a4aab44e;hpb=eaf030e5c88acd8658e8990f4449486f7e2dbc82;p=goircd.git diff --git a/daemon_test.go b/daemon_test.go index e6050f6..db84013 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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) }