X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fnncp%2Fpkt_test.go;h=e0765b3a7179c53be091cc421f4d4ff63c58d50a;hb=a4262555b0506c1cf85b9d5d4dae58bf3922e629;hp=15bff169132f01aa11eeb572f7aaa21c23ae7908;hpb=5b401cc06b0a9a29f0201c20ead311fb2bff7446;p=nncp.git diff --git a/src/cypherpunks.ru/nncp/pkt_test.go b/src/cypherpunks.ru/nncp/pkt_test.go index 15bff16..e0765b3 100644 --- a/src/cypherpunks.ru/nncp/pkt_test.go +++ b/src/cypherpunks.ru/nncp/pkt_test.go @@ -1,6 +1,6 @@ /* NNCP -- Node to Node copy, utilities for store-and-forward data exchange -Copyright (C) 2016-2017 Sergey Matveev +Copyright (C) 2016-2018 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -41,7 +41,7 @@ func TestPktEncWrite(t *testing.T) { if len(path) > int(pathSize) { path = path[:int(pathSize)] } - pkt, err := NewPkt(PktTypeFile, path) + pkt, err := NewPkt(PktTypeFile, 123, []byte(path)) if err != nil { panic(err) } @@ -87,7 +87,7 @@ func TestPktEncRead(t *testing.T) { if len(path) > int(pathSize) { path = path[:int(pathSize)] } - pkt, err := NewPkt(PktTypeFile, path) + pkt, err := NewPkt(PktTypeFile, 123, []byte(path)) if err != nil { panic(err) }