tests: fix a test job constaints failing in macOS
Allow scheduling mock job when running on MacOS (or Windows) hosts.
This commit is contained in:
parent
58fb6812db
commit
9f7eb1bdfa
|
@ -417,6 +417,8 @@ func TestClient_UpdateAllocStatus(t *testing.T) {
|
|||
defer cleanup()
|
||||
|
||||
job := mock.Job()
|
||||
// allow running job on any node including self client, that may not be a Linux box
|
||||
job.Constraints = nil
|
||||
job.TaskGroups[0].Count = 1
|
||||
task := job.TaskGroups[0].Tasks[0]
|
||||
task.Driver = "mock_driver"
|
||||
|
|
Loading…
Reference in New Issue