Skip to content

Commit

Permalink
Fix flaky sanity test for TestAgentStatus (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 5, 2024
1 parent 77fe7d9 commit 1e1b81d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sanity/resources/verifyUnixCtlScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# SPDX-License-Identifier: MIT

assertStatus() {
sleep 3
keyToCheck="${1:-}"
expectedVal="${2:-}"

Expand Down Expand Up @@ -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"
assertStatus "cwa_config_status" "not configured"

0 comments on commit 1e1b81d

Please sign in to comment.