Skip to content

Commit

Permalink
Update rs/chainselectors/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: PabloMansanet <[email protected]>
  • Loading branch information
amirylm and PabloMansanet authored Nov 4, 2024
1 parent a77c837 commit 9118e15
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions rs/chainselectors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@ mod tests {

#[test]
fn chain_from_str_unknown() {
match ChainName::from_str("ethereum-dummy-x") {
Ok(_) => panic!("should have failed for unknown chain"),
Err(e) => {
assert_eq!(e.to_string(), "unknown chain name: ethereum-dummy-x");
}
};
let e = ChainName::from_str("ethereum-dummy-x").unwrap_err();
assert_eq!(e.to_string(), "unknown chain name: ethereum-dummy-x");
}

#[test]
Expand Down

0 comments on commit 9118e15

Please sign in to comment.