X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=src%2Ftx_test.go;h=4523b6343b8ba6ed17acea1b6f7662a82837af0d;hp=ffe0edeade53ff0ce3d25ee440268614ed4309c2;hb=beefc4fd7137435caf9c653633ab938947df07f8;hpb=7243c73e65e260476dc6ddb900b2d3367583aebc diff --git a/src/tx_test.go b/src/tx_test.go index ffe0ede..4523b63 100644 --- a/src/tx_test.go +++ b/src/tx_test.go @@ -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) }