Selaa lähdekoodia

Fix test that relied on matching panic messages.

The panic message for copy_from_slice changed in Rust 1.47.
whitequark 4 vuotta sitten
vanhempi
commit
7948edc020
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/wire/ipv6.rs

+ 1 - 1
src/wire/ipv6.rs

@@ -887,7 +887,7 @@ mod test {
     }
 
     #[test]
-    #[should_panic(expected = "destination and source slices have different lengths")]
+    #[should_panic(expected = "length")]
     fn test_from_bytes_too_long() {
         let _ = Address::from_bytes(&[0u8; 15]);
     }