From 0c8e4afe453dbc337d8f8fc14b36af5bb07c1843 Mon Sep 17 00:00:00 2001 From: Alan Bernstein Date: Tue, 27 Oct 2020 09:55:45 -0500 Subject: [PATCH] Set test nodeIDs to guarantee iteration order in executor --- server/handler_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/handler_test.go b/server/handler_test.go index 3fcd78d55..2d740d622 100644 --- a/server/handler_test.go +++ b/server/handler_test.go @@ -1474,7 +1474,9 @@ func TestClusterTranslator(t *testing.T) { func TestQueryHistory(t *testing.T) { cluster := test.MustNewCluster(t, 2) - cluster.Nodes[0] = test.NewCommandNode(t, true) + cluster.Nodes[0] = test.NewCommandNode(t, true, server.OptCommandServerOptions( + pilosa.OptServerNodeID("1"), + )) cluster.GetNode(0).Config.Gossip.Port = "0" err := cluster.GetNode(0).Start() if err != nil { @@ -1482,7 +1484,9 @@ func TestQueryHistory(t *testing.T) { } defer cluster.GetNode(0).Close() - cluster.Nodes[1] = test.NewCommandNode(t, false) + cluster.Nodes[1] = test.NewCommandNode(t, false, server.OptCommandServerOptions( + pilosa.OptServerNodeID("0"), + )) cluster.GetNode(1).Config.Gossip.Port = "0" cluster.GetNode(1).Config.Gossip.Seeds = []string{cluster.GetNode(0).GossipAddress()} err = cluster.GetNode(1).Start()