From b55ee087b949674e5e8263c9f4c413f35404099a Mon Sep 17 00:00:00 2001 From: Musa Date: Tue, 3 Dec 2024 16:36:14 -0500 Subject: [PATCH] Fix flaky sanity test for TestAgentStatus (#441) --- test/sanity/resources/verifyUnixCtlScript.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/sanity/resources/verifyUnixCtlScript.sh b/test/sanity/resources/verifyUnixCtlScript.sh index c19ba0a06..44fc3d212 100755 --- a/test/sanity/resources/verifyUnixCtlScript.sh +++ b/test/sanity/resources/verifyUnixCtlScript.sh @@ -4,6 +4,7 @@ # SPDX-License-Identifier: MIT assertStatus() { + sleep 3 keyToCheck="${1:-}" expectedVal="${2:-}" @@ -81,4 +82,4 @@ step=9 /usr/bin/amazon-cloudwatch-agent-ctl -a remove-config -c all /usr/bin/amazon-cloudwatch-agent-ctl -a stop assertStatus "cwa_running_status" "stopped" -assertStatus "cwa_config_status" "not configured" \ No newline at end of file +assertStatus "cwa_config_status" "not configured"