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:
Mahmood Ali 2019-01-07 12:21:14 -05:00
parent 58fb6812db
commit 9f7eb1bdfa
1 changed files with 2 additions and 0 deletions

View File

@ -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"