From 941953edef5c621ed7c8930ad6232acb6332489d Mon Sep 17 00:00:00 2001 From: LunarMarathon Date: Wed, 4 Oct 2023 20:43:09 +0530 Subject: [PATCH] Updated to curr v of req resources --- tests/flytekit/unit/core/test_map_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/flytekit/unit/core/test_map_task.py b/tests/flytekit/unit/core/test_map_task.py index 48910e2444c..9b5c5b22004 100644 --- a/tests/flytekit/unit/core/test_map_task.py +++ b/tests/flytekit/unit/core/test_map_task.py @@ -1,6 +1,7 @@ import functools import typing from collections import OrderedDict +from flytekit.core.resources import Resources import pytest @@ -53,7 +54,7 @@ def my_mappable_task(a: int) -> typing.Optional[str]: def my_wf(x: typing.List[int]) -> typing.List[typing.Optional[str]]: return map_task(my_mappable_task, metadata=TaskMetadata(retries=1), concurrency=10, min_success_ratio=0.75,)( a=x - ).with_overrides(cpu="10M") + ).with_overrides(requests=Resources(cpu="10M")) # test_map_task_end