mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
test: update tests to properly use AllocDir
Also use t.TempDir when possible.
This commit is contained in:
@@ -201,7 +201,9 @@ func WaitForRunningWithToken(t testing.TB, rpc rpcFn, job *structs.Job, token st
|
||||
|
||||
var resp structs.JobAllocationsResponse
|
||||
|
||||
WaitForResult(func() (bool, error) {
|
||||
// This can be quite slow if the job has expensive setup such as
|
||||
// downloading large artifacts or creating a chroot.
|
||||
WaitForResultRetries(2000*TestMultiplier(), func() (bool, error) {
|
||||
args := &structs.JobSpecificRequest{}
|
||||
args.JobID = job.ID
|
||||
args.QueryOptions.Region = job.Region
|
||||
|
||||
Reference in New Issue
Block a user