"bytes"
"crypto/rand"
"io"
- "io/ioutil"
"os"
- "path"
+ "path/filepath"
"testing"
"testing/quick"
pathSrc = pathSrc[:MaxPathSize]
}
hops = hops % 4
- spool, err := ioutil.TempDir("", "testtx")
+ spool, err := os.MkdirTemp("", "testtx")
if err != nil {
panic(err)
}
nodeTgt := nodeTgtOur.Their()
ctx := Ctx{
Spool: spool,
- LogPath: path.Join(spool, "log.log"),
+ LogPath: filepath.Join(spool, "log.log"),
Debug: true,
Self: nodeOur,
SelfId: nodeOur.Id,