summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_ip_address_lease_time_test.go
diff options
context:
space:
mode:
authorPablo Mazzini <pmazzini@gmail.com>2018-07-30 19:05:13 +0200
committerPablo Mazzini <pmazzini@gmail.com>2018-07-30 19:05:13 +0200
commitc3434f38325856dcdc19adc29b5e31944614221b (patch)
tree5abc251f8c193556af9055f873e2fbc200b5813e /dhcpv4/option_ip_address_lease_time_test.go
parent6cf562816e82894ad1b0eb86923b5bcb7b7d2962 (diff)
fix OptIPAddressLeaseTime
Diffstat (limited to 'dhcpv4/option_ip_address_lease_time_test.go')
-rw-r--r--dhcpv4/option_ip_address_lease_time_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv4/option_ip_address_lease_time_test.go b/dhcpv4/option_ip_address_lease_time_test.go
index 66715bd..7d507bf 100644
--- a/dhcpv4/option_ip_address_lease_time_test.go
+++ b/dhcpv4/option_ip_address_lease_time_test.go
@@ -20,7 +20,7 @@ func TestParseOptIPAddressLeaseTime(t *testing.T) {
require.Equal(t, &OptIPAddressLeaseTime{LeaseTime: 43200}, o)
// Short byte stream
- data = []byte{51, 4}
+ data = []byte{51, 4, 168, 192}
_, err = ParseOptIPAddressLeaseTime(data)
require.Error(t, err, "should get error from short byte stream")