From dde036deceabd7afb7e702e804525b4e4024838f Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Fri, 25 Mar 2016 16:59:21 -0600 Subject: [PATCH] fix(manager): simplify code --- cmd/manager/deployments_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/manager/deployments_test.go b/cmd/manager/deployments_test.go index 43d57787b..4243a39f0 100644 --- a/cmd/manager/deployments_test.go +++ b/cmd/manager/deployments_test.go @@ -84,8 +84,8 @@ func TestListDeployments(t *testing.T) { man := c.Manager.(*mockManager) man.deployments = []*common.Deployment{ - &common.Deployment{Name: "one", State: &common.DeploymentState{Status: common.CreatedStatus}}, - &common.Deployment{Name: "two", State: &common.DeploymentState{Status: common.DeployedStatus}}, + {Name: "one", State: &common.DeploymentState{Status: common.CreatedStatus}}, + {Name: "two", State: &common.DeploymentState{Status: common.DeployedStatus}}, } res, err := http.Get(s.URL + "/deployments")