Skip to content

Commit

Permalink
test: don't match on specific panic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vmx committed Jan 9, 2024
1 parent 649125e commit a072d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tests/serde_deserialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ fn ipld_deserialize_link() {
}

#[test]
#[should_panic(expected = "assertion failed")]
#[should_panic]
fn ipld_deserialize_link_not_as_bytes() {
let cid = Cid::try_from("bafkreie74tgmnxqwojhtumgh5dzfj46gi4mynlfr7dmm7duwzyvnpw7h7m").unwrap();
let ipld = Ipld::Link(cid);
Expand Down

0 comments on commit a072d00

Please sign in to comment.