Skip to content

Commit

Permalink
test assertion on errmsg should not be sensitive to backtraces
Browse files Browse the repository at this point in the history
  • Loading branch information
ccciudatu committed Dec 16, 2024
1 parent 2738d10 commit 8db92b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datafusion/substrait/src/logical_plan/producer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2618,17 +2618,19 @@ mod test {
Ok(())
}

// take 1
let failed_attempt =
round_trip_logical_plans(&SessionContext::new(), &SessionContext::new())
.await
.expect_err(
"The round trip should fail in the absence of a SerializerRegistry",
);
assert_eq!(
assert_contains!(
failed_attempt.message(),
format!("No table named '{TABLE_NAME}'")
);

// take 2
fn proper_context() -> SessionContext {
SessionContext::new_with_state(
SessionStateBuilder::new()
Expand Down

0 comments on commit 8db92b8

Please sign in to comment.