diff --git a/nomad/node_endpoint_test.go b/nomad/node_endpoint_test.go index e6fc889f8..eef5a8b2f 100644 --- a/nomad/node_endpoint_test.go +++ b/nomad/node_endpoint_test.go @@ -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) }