From 3b690ba8ef1eef759adc4e41cf8de6c8c7273d46 Mon Sep 17 00:00:00 2001 From: Matthew Campbell Date: Wed, 1 Nov 2017 18:29:15 +0700 Subject: [PATCH] jobs tests were sending invalid jobs --- api/jobs_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/jobs_test.go b/api/jobs_test.go index 6370ae2f1..90e51ddfc 100644 --- a/api/jobs_test.go +++ b/api/jobs_test.go @@ -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),