diff --git a/datafusion/substrait/src/logical_plan/producer.rs b/datafusion/substrait/src/logical_plan/producer.rs index 4f8fb5e44500f..2e8c7ecdf2b0e 100644 --- a/datafusion/substrait/src/logical_plan/producer.rs +++ b/datafusion/substrait/src/logical_plan/producer.rs @@ -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()