Skip to content

Commit

Permalink
imp: merge assert checks for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Farhad-Shabani committed Jan 26, 2024
1 parent b6eb4ec commit 08aef51
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ibc-testkit/tests/core/ics02_client/create_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ fn test_invalid_frozen_tm_client_creation() {

let res = validate(&ctx, &router, msg_envelope.clone());

assert!(res.is_err());

match res.unwrap_err() {
ContextError::ClientError(ClientError::ClientFrozen { .. }) => {}
e => panic!("unexpected error: {}", e),
}
assert!(matches!(
res,
Err(ContextError::ClientError(ClientError::ClientFrozen { .. }))
))
}

0 comments on commit 08aef51

Please sign in to comment.