From 018caddcb1ebc9c36a656d0186e4c28ec6af8a33 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Wed, 24 Feb 2021 13:54:06 -0800 Subject: Fix tests to match the change packet Signed-off-by: Marcel Moolenaar --- dhcpv6/option_dhcpv4_msg_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dhcpv6') diff --git a/dhcpv6/option_dhcpv4_msg_test.go b/dhcpv6/option_dhcpv4_msg_test.go index 1ffa17a..d8d3f6d 100644 --- a/dhcpv6/option_dhcpv4_msg_test.go +++ b/dhcpv6/option_dhcpv4_msg_test.go @@ -87,14 +87,14 @@ func TestOptDHCPv4MsgToBytes(t *testing.T) { // Magic Cookie expected = append(expected, magicCookie[:]...) + // End + expected = append(expected, 0xff) + // Minimum message length padding. // - // 236 + 4 byte cookie + 59 bytes padding + 1 byte end. + // 236 + 4 byte cookie + 1 byte end + 59 bytes padding. expected = append(expected, bytes.Repeat([]byte{0}, 59)...) - // End - expected = append(expected, 0xff) - d, err := dhcpv4.New() require.NoError(t, err) // fix TransactionID to match the expected one, since it's randomly -- cgit v1.2.3