From a38614d36790a413495cf8fda376d244f52291c8 Mon Sep 17 00:00:00 2001 From: Guillaume Bouvignies Date: Fri, 8 Dec 2023 19:15:08 +0100 Subject: [PATCH] fix: Fix test_complex_flow_restart (#2813) --- backend/tests/worker.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index 47d8b7aac5..0266f50ef0 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -2804,10 +2804,9 @@ async fn test_complex_flow_restart(db: Pool) { }), }).run_until_complete(&db, port).await; - assert_eq!( - first_run_result.json_result().unwrap(), - restarted_flow_result.json_result().unwrap() - ); + let first_run_result_int = serde_json::from_value::(first_run_result.json_result().unwrap()).expect("first_run_result was not an int"); + let restarted_flow_result_int = serde_json::from_value::(restarted_flow_result.json_result().unwrap()).expect("restarted_flow_result was not an int"); + assert_eq!(first_run_result_int, restarted_flow_result_int); } #[sqlx::test(fixtures("base"))]