Browse Source

Fix failing tests

Jarred Allen 2 năm trước cách đây
mục cha
commit
6a4c549a94
2 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 2 0
      src/socket/dhcpv4.rs
  2. 4 0
      src/wire/dhcpv4.rs

+ 2 - 0
src/socket/dhcpv4.rs

@@ -860,6 +860,8 @@ mod test {
         parameter_request_list: None,
         dns_servers: None,
         max_size: None,
+        renew_duration: None,
+        rebind_duration: None,
         lease_duration: None,
         additional_options: &[],
     };

+ 4 - 0
src/wire/dhcpv4.rs

@@ -1162,6 +1162,8 @@ mod test {
             parameter_request_list: None,
             dns_servers: None,
             max_size: None,
+            renew_duration: None,
+            rebind_duration: None,
             lease_duration: Some(0xffff_ffff), // Infinite lease
             additional_options: &[],
         }
@@ -1181,6 +1183,8 @@ mod test {
             broadcast: false,
             secs: 0,
             max_size: Some(DHCP_SIZE),
+            renew_duration: None,
+            rebind_duration: None,
             lease_duration: None,
             requested_ip: Some(IP_NULL),
             client_identifier: Some(CLIENT_MAC),