]> Cypherpunks.ru repositories - goircd.git/blobdiff - daemon_test.go
io/ioutil is deprecated since Go 1.16
[goircd.git] / daemon_test.go
index 76d620305dcf83725ef3e43f7d68e21028f4b6d3..db8401351831c3026d2e391f3719ba3bf1800e13 100644 (file)
@@ -1,6 +1,6 @@
 /*
 goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2020 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2022 Sergey Matveev <stargrave@stargrave.org>
 
 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 <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)
        }