]> Cypherpunks.ru repositories - goircd.git/blobdiff - daemon_test.go
io/ioutil is deprecated since Go 1.16
[goircd.git] / daemon_test.go
index bcd8326badd139d4686bc129fa1676f25f5ed2c6..db8401351831c3026d2e391f3719ba3bf1800e13 100644 (file)
@@ -18,7 +18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 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)
        }