WIP
This commit is contained in:
@@ -3,7 +3,7 @@ package peer
|
||||
import "testing"
|
||||
|
||||
func TestHeaderMarshalParse(t *testing.T) {
|
||||
nIn := header{
|
||||
nIn := Header{
|
||||
StreamID: 23,
|
||||
Counter: 3212,
|
||||
SourceIP: 34,
|
||||
@@ -13,7 +13,7 @@ func TestHeaderMarshalParse(t *testing.T) {
|
||||
buf := make([]byte, headerSize)
|
||||
nIn.Marshal(buf)
|
||||
|
||||
nOut := header{}
|
||||
nOut := Header{}
|
||||
nOut.Parse(buf)
|
||||
if nIn != nOut {
|
||||
t.Fatal(nIn, nOut)
|
||||
|
||||
Reference in New Issue
Block a user