From 5cc4eae26c668381cd1fe6bfbd9c6bb2c408b596 Mon Sep 17 00:00:00 2001 From: Afsl Thaj Date: Thu, 4 Jul 2024 23:49:24 +1000 Subject: [PATCH] Fix tests --- .../src/worker_bridge_execution/refined_worker_response.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/golem-worker-service-base/src/worker_bridge_execution/refined_worker_response.rs b/golem-worker-service-base/src/worker_bridge_execution/refined_worker_response.rs index 6ab143260a..9a66fe3a86 100644 --- a/golem-worker-service-base/src/worker_bridge_execution/refined_worker_response.rs +++ b/golem-worker-service-base/src/worker_bridge_execution/refined_worker_response.rs @@ -6,7 +6,7 @@ use crate::worker_bridge_execution::WorkerResponse; // Refined Worker response is different from WorkerResponse, because, // it ensures that we are not returning a vector of result if they are not named results // or unit -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq)] pub enum RefinedWorkerResponse { Unit, SingleResult(TypeAnnotatedValue), @@ -68,7 +68,10 @@ mod tests { fn test_refined_worker_response_from_worker_response() { let worker_response = WorkerResponse { result: TypedResult { - result: TypeAnnotatedValue::U32(1), + result: TypeAnnotatedValue::Tuple { + value: vec![TypeAnnotatedValue::U32(1)], + typ: vec![AnalysedType::U32], + }, function_result_types: vec![FunctionResult { name: None, typ: Type::U32(TypeU32),