mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
Fix test
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user