File tree 1 file changed +2
-1
lines changed
services/autoscaling/tests/unit
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2167,6 +2167,7 @@ async def test_warm_buffers_only_replace_hot_buffer_if_service_is_started_issue7
2167
2167
fake_attached_node_base .spec .labels |= expected_docker_node_tags | {
2168
2168
_OSPARC_SERVICE_READY_LABEL_KEY : "false"
2169
2169
}
2170
+ assert fake_attached_node_base .status
2170
2171
fake_attached_node_base .status .state = NodeState .ready
2171
2172
fake_hot_buffer_nodes = []
2172
2173
for i in range (num_hot_buffer ):
@@ -2297,7 +2298,7 @@ async def test_warm_buffers_only_replace_hot_buffer_if_service_is_started_issue7
2297
2298
instance_filters = stopped_instance_type_filters ,
2298
2299
)
2299
2300
# simulate one of the hot buffer is not drained anymore and took the pending service
2300
- random_fake_node = random .choice (fake_hot_buffer_nodes )
2301
+ random_fake_node = random .choice (fake_hot_buffer_nodes ) # noqa: S311
2301
2302
random_fake_node .spec .labels [_OSPARC_SERVICE_READY_LABEL_KEY ] = "true"
2302
2303
random_fake_node .spec .labels [
2303
2304
_OSPARC_SERVICES_READY_DATETIME_LABEL_KEY
You can’t perform that action at this time.
0 commit comments