"bytes"
"crypto/rand"
"io"
- "io/ioutil"
"os"
"path"
"testing"
pathSrc = pathSrc[:MaxPathSize]
}
hops = hops % 4
- spool, err := ioutil.TempDir("", "testtx")
+ spool, err := os.MkdirTemp("", "testtx")
if err != nil {
panic(err)
}
nodeTgt.Via = append(nodeTgt.Via, node.Id)
}
pkt, err := NewPkt(PktTypeExec, replyNice, []byte(pathSrc))
+ if err != nil {
+ panic(err)
+ }
src := bytes.NewReader(data)
dstNode, _, _, err := ctx.Tx(
nodeTgt,