Skip to content

Commit

Permalink
Fix yet another test.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Nov 5, 2015
1 parent 7b9449b commit 9bb9662
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/api_topology_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,13 @@ func TestAPITopologyContainers(t *testing.T) {
if err := json.Unmarshal(body, &topo); err != nil {
t.Fatal(err)
}
want := expected.RenderedContainers.Copy()
for id, node := range want {
node.ControlNode = ""
want[id] = node
}

if want, have := expected.RenderedContainers, topo.Nodes.Prune(); !reflect.DeepEqual(want, have) {
if have := topo.Nodes.Prune(); !reflect.DeepEqual(want, have) {
t.Error(test.Diff(want, have))
}
}
Expand Down

0 comments on commit 9bb9662

Please sign in to comment.