Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix TestCreateServiceSecretFileMode, TestCreateServiceConfigFileMode
These tests wer failing frequently: === RUN TestCreateServiceSecretFileMode create_test.go:291: assertion failed: 2 (int) != 1 (int) --- FAIL: TestCreateServiceSecretFileMode (7.88s) === RUN TestCreateServiceConfigFileMode create_test.go:355: assertion failed: 2 (int) != 1 (int) --- FAIL: TestCreateServiceConfigFileMode (7.87s) Which likely is because the client.TaskList() was only filtering by service, and not by desired state of the tasks. In case the service failed to start (several retries needed), this would also return the failed tasks in the result. This patch changes the tests to use the GetRunningTasks() utility, which only returns tasks that are expected to be running. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
- Loading branch information