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

Fixing tests

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