]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/tx_test.go
ioutil is deprecated since 1.16/1.17
[nncp.git] / src / tx_test.go
index ffe0edeade53ff0ce3d25ee440268614ed4309c2..4523b6343b8ba6ed17acea1b6f7662a82837af0d 100644 (file)
@@ -21,7 +21,6 @@ import (
        "bytes"
        "crypto/rand"
        "io"
-       "io/ioutil"
        "os"
        "path"
        "testing"
@@ -48,7 +47,7 @@ func TestTx(t *testing.T) {
                        pathSrc = pathSrc[:MaxPathSize]
                }
                hops = hops % 4
-               spool, err := ioutil.TempDir("", "testtx")
+               spool, err := os.MkdirTemp("", "testtx")
                if err != nil {
                        panic(err)
                }