have test use the cluster.Start helper to avoid port conflicts

cluster.Start creates ephemeral ports for all the etcd stuff, whereas
node.Start uses the default config. I don't know why this test was
using the node.Start, but it passes without it.
This commit is contained in:
Matthew Jaffee 2022-02-08 09:30:07 -06:00
parent 6cc5d198ee
commit 04b13d9eb6

View file

@ -1405,7 +1405,7 @@ func TestCluster_TranslateStore(t *testing.T) {
),
)
if err := cluster.GetIdleNode(0).Start(); err != nil {
if err := cluster.Start(); err != nil {
t.Fatalf("starting node 0: %v", err)
}
defer cluster.GetIdleNode(0).Close() // nolint: errcheck