diff options
-rw-r--r-- | server/zclient_test.go | 4 | ||||
-rw-r--r-- | zebra/zapi_test.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/server/zclient_test.go b/server/zclient_test.go index f4391b09..7338adcb 100644 --- a/server/zclient_test.go +++ b/server/zclient_test.go @@ -29,9 +29,9 @@ func Test_createRequestFromIPRouteMessage(t *testing.T) { m := &zebra.Message{} h := &zebra.Header{ - Len: zebra.HEADER_SIZE, + Len: zebra.HeaderSize(2), Marker: zebra.HEADER_MARKER, - Version: zebra.VERSION, + Version: 2, Command: zebra.IPV4_ROUTE_ADD, } diff --git a/zebra/zapi_test.go b/zebra/zapi_test.go index be464235..4de3f9b7 100644 --- a/zebra/zapi_test.go +++ b/zebra/zapi_test.go @@ -29,7 +29,7 @@ func Test_Header(t *testing.T) { buf := make([]byte, 6) binary.BigEndian.PutUint16(buf[0:], 10) buf[2] = HEADER_MARKER - buf[3] = VERSION + buf[3] = 2 binary.BigEndian.PutUint16(buf[4:], uint16(IPV4_ROUTE_ADD)) h := &Header{} err := h.DecodeFromBytes(buf) @@ -44,7 +44,7 @@ func Test_Header(t *testing.T) { assert.Equal(h, h2) // header_size mismatch - buf = make([]byte, HEADER_SIZE-1) + buf = make([]byte, HeaderSize(2)-1) binary.BigEndian.PutUint16(buf[0:], 10) buf[2] = 0xff buf[3] = 0x02 |