jobs tests were sending invalid jobs

This commit is contained in:
Matthew Campbell
2017-11-01 18:29:15 +07:00
parent c263d31ee3
commit 3b690ba8ef

View File

@@ -238,9 +238,9 @@ func TestJobs_Canonicalize(t *testing.T) {
Driver: "docker",
Config: map[string]interface{}{
"image": "redis:3.2",
"port_map": map[string]int{
"port_map": []map[string]int{{
"db": 6379,
},
}},
},
Resources: &Resources{
CPU: helper.IntToPtr(500),
@@ -347,9 +347,9 @@ func TestJobs_Canonicalize(t *testing.T) {
Driver: "docker",
Config: map[string]interface{}{
"image": "redis:3.2",
"port_map": map[string]int{
"port_map": []map[string]int{{
"db": 6379,
},
}},
},
Resources: &Resources{
CPU: helper.IntToPtr(500),