Skip to content

Commit

Permalink
Merge pull request #2200 from CosmWasm/co/fix-tests-with-backtrace
Browse files Browse the repository at this point in the history
Fix failing test with `RUST_BACKTRACE` enabled
  • Loading branch information
chipshort authored Aug 7, 2024
2 parents fcc0334 + 33191cb commit 05f77ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/std/src/errors/std_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ mod tests {
fn implements_debug() {
let error: StdError = StdError::from(OverflowError::new(OverflowOperation::Sub));
let embedded = format!("Debug: {error:?}");
let expected = r#"Debug: Overflow { source: OverflowError { operation: Sub }, backtrace: <disabled> }"#;
assert_eq!(embedded, expected);
assert!(embedded
.starts_with("Debug: Overflow { source: OverflowError { operation: Sub }, backtrace:"));
}

#[test]
Expand Down

0 comments on commit 05f77ed

Please sign in to comment.