diff options
-rw-r--r-- | dhcpv4/option_relay_agent_information_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpv4/option_relay_agent_information_test.go b/dhcpv4/option_relay_agent_information_test.go index 9e0bfde..f4f46c9 100644 --- a/dhcpv4/option_relay_agent_information_test.go +++ b/dhcpv4/option_relay_agent_information_test.go @@ -13,7 +13,9 @@ func TestParseOptRelayAgentInformation(t *testing.T) { 1, 5, 'l', 'i', 'n', 'u', 'x', 2, 4, 'b', 'o', 'o', 't', } - opt, err := ParseOptRelayAgentInformation(data) + opt, err := ParseOptRelayAgentInformation([]byte("")) + require.Error(t, err) + opt, err = ParseOptRelayAgentInformation(data) require.NoError(t, err) require.Equal(t, len(opt.Options), 2) circuit, ok := opt.Options[0].(*OptionGeneric) |