This commit is contained in:
Alex Dadgar
2016-01-21 12:21:42 -08:00
parent e5d2749d47
commit 367fee5e2b

View File

@@ -357,6 +357,13 @@ func TestClientEndpoint_GetNode(t *testing.T) {
t.Fatalf("Bad index: %d %d", resp2.Index, resp.Index)
}
if resp2.Node.ComputedClass == 0 {
t.Fatalf("bad ComputedClass: %#v", resp2.Node)
}
// Reset for comparison
resp2.Node.ComputedClass = 0
if !reflect.DeepEqual(node, resp2.Node) {
t.Fatalf("bad: %#v %#v", node, resp2.Node)
}