Skip to content

Commit 54c72c4

Browse files
committed
ruff
1 parent 3a73096 commit 54c72c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/autoscaling/tests/unit/test_modules_auto_scaling_computational.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)