diff options
author | Jeff Bean <bean@uber.com> | 2018-06-22 19:12:33 -0700 |
---|---|---|
committer | Jeff Bean <bean@uber.com> | 2018-06-22 19:12:33 -0700 |
commit | 154650594c5b40b2905eb73b90f52de72f6ced16 (patch) | |
tree | 2ba6ffe099ff216a92df7fb3806eb9aeaa988208 /zebra/zapi_test.go | |
parent | 954562d65a90af4e8d2e9bf29e4c2bccc4420b38 (diff) |
Fixing all megacheck errors.
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()) |