File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
services/autoscaling/tests/unit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -673,7 +673,7 @@ async def test_cluster_scaling_up_and_down( # noqa: PLR0915
673673 fake_attached_node .spec .labels [_OSPARC_SERVICE_READY_LABEL_KEY ] = "false"
674674 fake_attached_node .spec .labels [
675675 _OSPARC_SERVICES_READY_DATETIME_LABEL_KEY
676- ] = datetime .datetime .now (tz = datetime .timezone . utc ).isoformat ()
676+ ] = datetime .datetime .now (tz = datetime .UTC ).isoformat ()
677677
678678 # the node will be not be terminated before the timeout triggers
679679 assert app_settings .AUTOSCALING_EC2_INSTANCES
@@ -699,7 +699,7 @@ async def test_cluster_scaling_up_and_down( # noqa: PLR0915
699699
700700 # now changing the last update timepoint will trigger the node removal and shutdown the ec2 instance
701701 fake_attached_node .spec .labels [_OSPARC_SERVICES_READY_DATETIME_LABEL_KEY ] = (
702- datetime .datetime .now (tz = datetime .timezone . utc )
702+ datetime .datetime .now (tz = datetime .UTC )
703703 - app_settings .AUTOSCALING_EC2_INSTANCES .EC2_INSTANCES_TIME_BEFORE_TERMINATION
704704 - datetime .timedelta (seconds = 1 )
705705 ).isoformat ()
You can’t perform that action at this time.
0 commit comments