From ff1b80dba64685dbceca57dd0afd7200fba44047 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Wed, 26 Jun 2019 16:12:07 -0500 Subject: [PATCH] Fix node drain test --- nomad/node_endpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomad/node_endpoint_test.go b/nomad/node_endpoint_test.go index 1c748da83..d7d584434 100644 --- a/nomad/node_endpoint_test.go +++ b/nomad/node_endpoint_test.go @@ -2682,7 +2682,7 @@ func TestClientEndpoint_ListNodes_Blocking(t *testing.T) { if resp2.Index != 3 { t.Fatalf("Bad index: %d %d", resp2.Index, 3) } - if len(resp2.Nodes) != 1 || !resp2.Nodes[0].Drain { + if len(resp2.Nodes) != 1 { t.Fatalf("bad: %#v", resp2.Nodes) }