X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Ftoss_test.go;h=4ccf4ead4ca656ff8738b6773b5cf385b56339ae;hb=9c25694667c14c934fc122741b9736988172f7de;hp=a96f78bd68afb6f28141ee361e37eaa1e802a4be;hpb=1839c0c82da418c4242764d4439aa879ee0a9494;p=nncp.git diff --git a/src/toss_test.go b/src/toss_test.go index a96f78b..4ccf4ea 100644 --- a/src/toss_test.go +++ b/src/toss_test.go @@ -26,6 +26,7 @@ import ( "os" "path/filepath" "strconv" + "strings" "testing" "testing/quick" @@ -96,7 +97,7 @@ func TestTossExec(t *testing.T) { replyNice, handle, []string{"arg0", "arg1"}, - []byte("BODY\n"), + strings.NewReader("BODY\n"), 1<<15, ); err != nil { t.Error(err) @@ -441,7 +442,7 @@ func TestTossTrns(t *testing.T) { os.MkdirAll(txPath, os.FileMode(0700)) for _, data := range datum { pktTrans := Pkt{ - Magic: MagicNNCPPv2, + Magic: MagicNNCPPv3, Type: PktTypeTrns, PathLen: blake2b.Size256, Path: new([MaxPathSize]byte),