fix(manager): simplify code

pull/459/head
Matt Butcher 9 years ago
parent e1efff4b34
commit dde036dece

@ -84,8 +84,8 @@ func TestListDeployments(t *testing.T) {
man := c.Manager.(*mockManager) man := c.Manager.(*mockManager)
man.deployments = []*common.Deployment{ man.deployments = []*common.Deployment{
&common.Deployment{Name: "one", State: &common.DeploymentState{Status: common.CreatedStatus}}, {Name: "one", State: &common.DeploymentState{Status: common.CreatedStatus}},
&common.Deployment{Name: "two", State: &common.DeploymentState{Status: common.DeployedStatus}}, {Name: "two", State: &common.DeploymentState{Status: common.DeployedStatus}},
} }
res, err := http.Get(s.URL + "/deployments") res, err := http.Get(s.URL + "/deployments")

Loading…
Cancel
Save