-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing: fix test flake in data.nomad_allocations test (#502)
The acceptance test for `data.nomad_allocations` creates a job and then reads the allocations in the same configuration. This results in frequent test flakes because registering a job via `resource.nomad_job` will typically return before the allocations have actually been created, making the `depends_on` useless. This frankly isn't a good workflow to encourage, as allocations are ephemeral. Fix the test by creating the job first, waiting for the allocations to be live, and then adding the `data.nomad_allocations` object to the config.
- Loading branch information
Showing
1 changed file
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters