Skip to content

Commit

Permalink
Refactor test-script.bats to remove unnecessary use of 'sudo' in inst…
Browse files Browse the repository at this point in the history
…allation command
  • Loading branch information
bengo237 committed Sep 19, 2024
1 parent 9b09da0 commit 45422d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tests/test-script.bats
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ chmod +x /app/scripts/install.sh
@test "script runs without errors" {
export WAZUH_AGENT_NAME="test-agent-123"
export WAZUH_MANAGER="10.0.0.2"
run /app/scripts/install.sh
run sudo bash /app/scripts/install.sh
[ "$status" -eq 0 ]
}

0 comments on commit 45422d6

Please sign in to comment.