Browse Source

Fix test that relied on matching panic messages.

The panic message for copy_from_slice changed in Rust 1.47.
whitequark 4 năm trước cách đây
mục cha
commit
7948edc020
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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]);
     }