Skip to content
Snippets Groups Projects
Commit 0a6c0821 authored by Oliver Herms's avatar Oliver Herms
Browse files

Fixing tests

parent 76762ee4
Branches
Tags
No related merge requests found
......@@ -33,7 +33,6 @@ func decodeInitiationMessage(buf *bytes.Buffer, ch *CommonHeader) (Msg, error) {
im.TLVs = append(im.TLVs, tlv)
read += uint32(tlv.InformationLength) + MinInformationTLVLen
fmt.Printf("read: %d\n", read)
}
return im, nil
......
......@@ -41,6 +41,9 @@ func TestDecodeInitiationMessage(t *testing.T) {
},
wantFail: false,
expected: &InitiationMessage{
CommonHeader: &CommonHeader{
MsgLength: CommonHeaderLen + 17,
},
TLVs: []*InformationTLV{
{
InformationType: 1,
......
......@@ -41,6 +41,9 @@ func TestDecodeTerminationMessage(t *testing.T) {
},
wantFail: false,
expected: &TerminationMessage{
CommonHeader: &CommonHeader{
MsgLength: CommonHeaderLen + 17,
},
TLVs: []*InformationTLV{
{
InformationType: 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment