Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestEnvWithDefault and TestContainerCMDEventToStderr (elastic#5361)
Now TestEnvWithDefault unsets all environment variables it sets, allowing it to be run multiple times using `-count`. TestContainerCMDEventToStderr did not call agentFixture.Prepare early enough leading to an empty STATE_PATH env var, so all state information was in /usr/share/elastic-agent, which could make subsequent tests to fail because they could read /usr/share/elastic-agent/state/container-paths.yml and use a state path different than the one set in the test. --------- Co-authored-by: Paolo Chilà <[email protected]>
- Loading branch information