diff options
Diffstat (limited to 'zebra/zapi_test.go')
-rw-r--r-- | zebra/zapi_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zapi_test.go b/zebra/zapi_test.go index 733feb93..9fda5416 100644 --- a/zebra/zapi_test.go +++ b/zebra/zapi_test.go @@ -21,6 +21,8 @@ import ( "syscall" "testing" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/assert" ) @@ -113,6 +115,8 @@ func Test_InterfaceAddressUpdateBody(t *testing.T) { b := &InterfaceAddressUpdateBody{} err := b.DecodeFromBytes(buf, 2) + require.NoError(t, err) + assert.Equal(uint32(0), b.Index) assert.Equal(INTERFACE_ADDRESS_FLAG(1), b.Flags) assert.Equal("192.168.100.1", b.Prefix.String()) |