Browse Source

Update unit test

Lucas Villa Real 10 months ago
parent
commit
d0fd2c8fc3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/iface/interface/tests/ipv6.rs

+ 2 - 2
src/iface/interface/tests/ipv6.rs

@@ -1245,11 +1245,11 @@ fn test_join_ipv6_multicast_group(#[case] medium: Medium) {
                 data: &[],
             }
         );
-        assert_eq!(hbh_repr.options[1], Ipv6OptionRepr::PadN(0));
         assert_eq!(
-            hbh_repr.options[2],
+            hbh_repr.options[1],
             Ipv6OptionRepr::RouterAlert(Ipv6OptionRouterAlert::MulticastListenerDiscovery)
         );
+        assert_eq!(hbh_repr.options[2], Ipv6OptionRepr::PadN(0));
 
         let icmpv6_packet =
             Icmpv6Packet::new_checked(&ip_payload[hbh_repr.buffer_len()..]).unwrap();