mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 00:15:43 +03:00
Ensure that api test agent is terminated gracefully. This is desired for two purposes: First, to ensure that the logs are fully flished out. If the agent is killed mid log line and go test doesn't emit a new line before `--- PASS:` indicator, the test may be marked as failed, even if it passed. Sample failure is https://circleci.com/gh/hashicorp/nomad/72360 . Second, ensure that the agent terminates any auxiliary processes (e.g. logmon, tasks).