Fixed docker tests

This commit is contained in:
Diptanu Choudhury 2016-02-10 13:29:06 -08:00
parent 79141f3021
commit ab75f89c33

View file

@ -71,6 +71,10 @@ func dockerTask() (*structs.Task, int, int) {
Config: map[string]interface{}{
"image": "redis",
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
Resources: &structs.Resources{
MemoryMB: 256,
CPU: 512,
@ -197,6 +201,10 @@ func TestDockerDriver_StartOpen_Wait(t *testing.T) {
Config: map[string]interface{}{
"image": "redis",
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
Resources: basicResources,
}
@ -236,6 +244,10 @@ func TestDockerDriver_Start_Wait(t *testing.T) {
MemoryMB: 256,
CPU: 512,
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
}
_, handle, cleanup := dockerSetup(t, task)
@ -279,6 +291,10 @@ func TestDockerDriver_Start_Wait_AllocDir(t *testing.T) {
string(exp), env.AllocDir, file),
},
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
Resources: &structs.Resources{
MemoryMB: 256,
CPU: 512,
@ -328,6 +344,10 @@ func TestDockerDriver_Start_Kill_Wait(t *testing.T) {
"command": "/bin/sleep",
"args": []string{"10"},
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
Resources: basicResources,
}
@ -462,6 +482,10 @@ func TestDockerHostNet(t *testing.T) {
MemoryMB: 256,
CPU: 512,
},
LogConfig: &structs.LogConfig{
MaxFiles: 10,
MaxFileSizeMB: 10,
},
}
client, handle, cleanup := dockerSetup(t, task)