Commit dde036de authored by Matt Butcher's avatar Matt Butcher

fix(manager): simplify code

parent e1efff4b
...@@ -84,8 +84,8 @@ func TestListDeployments(t *testing.T) { ...@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment