From b33f0a46feb49fcc1e276a96787d4a325c05703c Mon Sep 17 00:00:00 2001 From: Eddy Mwiti Date: Wed, 22 Nov 2023 14:24:02 +0000 Subject: [PATCH] Add wait time to ensure logs are uploaded to CW --- tests/integration-tests/tests/scaling/test_scaling.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration-tests/tests/scaling/test_scaling.py b/tests/integration-tests/tests/scaling/test_scaling.py index 41c9b570d5..ac76d5ca93 100644 --- a/tests/integration-tests/tests/scaling/test_scaling.py +++ b/tests/integration-tests/tests/scaling/test_scaling.py @@ -11,6 +11,7 @@ # See the License for the specific language governing permissions and limitations under the License. import logging import os +import time from itertools import chain from typing import Union @@ -520,6 +521,8 @@ def _assert_cluster_update_scaling( cluster, updated_cluster_config, scheduler_commands, region, max_monitoring_time ) + time.sleep(300) # Time to upload logs to CW before deleting cluster in case of assertion failure + _check_scaling_results( ec2_capacity_time_series, compute_nodes_time_series,