Skip to content

Commit a072d00

Browse files
committed
test: don't match on specific panic
Recent Rust versions (>=1.73.0) changed the wording when using `assert_eq!()`. This made a test fail, as it was targeted at a specific message. As this message could change any time (as it's not under our control), just remove that exact matching, and just match on any panic. Closes #195.
1 parent 649125e commit a072d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/tests/serde_deserialize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ fn ipld_deserialize_link() {
143143
}
144144

145145
#[test]
146-
#[should_panic(expected = "assertion failed")]
146+
#[should_panic]
147147
fn ipld_deserialize_link_not_as_bytes() {
148148
let cid = Cid::try_from("bafkreie74tgmnxqwojhtumgh5dzfj46gi4mynlfr7dmm7duwzyvnpw7h7m").unwrap();
149149
let ipld = Ipld::Link(cid);

0 commit comments

Comments
 (0)