Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recommendation test to ensure CPU exists (#10004)
This fixes a flaky test, as seen in this failure: https://app.circleci.com/pipelines/github/hashicorp/nomad/14726/workflows/f4ae0bf2-0699-4d18-b55e-5221aafe393c/jobs/137128 One part of the test involves toggling off all memory recommendations and then accepting, but it’s not possible to accept when there are no CPU recommendations to begin with, which can happen because there’s a 10% chance of not creating a corresponding recommendation in the task factory. Since two tasks are created for this module, it’s only a 1% chance of no CPU task, but that means 1% flakiness!
- Loading branch information