diff --git a/dozer-ingestion/postgres/src/schema/tests.rs b/dozer-ingestion/postgres/src/schema/tests.rs index d7ffe05209..d2b64b8794 100644 --- a/dozer-ingestion/postgres/src/schema/tests.rs +++ b/dozer-ingestion/postgres/src/schema/tests.rs @@ -152,12 +152,12 @@ async fn test_connector_view_cannot_be_used() { }; let result = schema_helper.get_schemas(&[table_info]).await; - assert!(result.is_err()); + assert!(result.is_err(), "Result is not an error. Result: {:?}", result); assert!(matches!( - result, - Err(PostgresConnectorError::PostgresSchemaError( + result.unwrap().get(0).unwrap(), + PostgresConnectorError::PostgresSchemaError( PostgresSchemaError::UnsupportedTableType(_, _) - )) + ) )); let table_info = ListOrFilterColumns { @@ -166,7 +166,7 @@ async fn test_connector_view_cannot_be_used() { columns: Some(vec![]), }; let result = schema_helper.get_schemas(&[table_info]).await; - assert!(result.is_ok()); + assert!(result.unwrap().get(0).is_ok()); client.drop_schema(&schema).await; }