Skip to content

Commit

Permalink
Fixed test case failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jalw0tpyrc committed Mar 31, 2022
1 parent d596030 commit e60263e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chain/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ mod tests {
.check_consensus_state(&$new_state)
.expect_err("expected StateErrorKind::DoubleSign but succeeded");

assert_eq!(err.kind(), &StateErrorKind::DoubleSign)
assert!(matches!(err, StateError(StateErrorDetail::DoubleSignError(_), _)))
}
};
}
Expand Down

0 comments on commit e60263e

Please sign in to comment.