Explorar o código

Fix test that relied on matching panic messages.

The panic message for copy_from_slice changed in Rust 1.47.
whitequark %!s(int64=4) %!d(string=hai) anos
pai
achega
7948edc020
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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]);
     }