Fixed some more tests

This commit is contained in:
Diptanu Choudhury
2016-08-25 23:05:21 -05:00
parent 183294644e
commit efb0d3de8a
4 changed files with 4 additions and 9 deletions

View File

@@ -85,7 +85,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}
@@ -125,7 +124,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}

View File

@@ -32,7 +32,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}
@@ -121,7 +120,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}
@@ -171,7 +169,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}

View File

@@ -45,7 +45,6 @@ func testJob(jobID string) *api.Job {
SetConfig("exit_code", 0).
Require(&api.Resources{
MemoryMB: 256,
DiskMB: 20,
CPU: 100,
}).
SetLogConfig(&api.LogConfig{
@@ -54,7 +53,10 @@ func testJob(jobID string) *api.Job {
})
group := api.NewTaskGroup("group1", 1).
AddTask(task)
AddTask(task).
RequireDisk(&api.LocalDisk{
DiskMB: 20,
})
job := api.NewBatchJob(jobID, jobID, "region1", 1).
AddDatacenter("dc1").

View File

@@ -32,7 +32,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}
@@ -126,7 +125,6 @@ job "job1" {
driver = "exec"
resources = {
cpu = 1000
disk = 150
memory = 512
}
}