From 1d049d6223a5aafaf1bc02ed86315614cf09d838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karolis=20Gudi=C5=A1kis?= Date: Fri, 29 Mar 2024 15:14:45 +0200 Subject: [PATCH] Make condition more verbose --- dozer-ingestion/postgres/src/schema/tests.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; }