chore: consolidate various randomPort() implementations (#12362)

Consolidates our existing randomPort() implementations to package testutil
This commit is contained in:
Cian Johnston
2024-02-29 12:51:44 +00:00
committed by GitHub
parent 4f87ba46f9
commit eba8cd7c07
6 changed files with 52 additions and 42 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ func TestServer(t *testing.T) {
var root cli.RootCmd
cmd, err := root.Command(root.EnterpriseSubcommands())
require.NoError(t, err)
port := randomPort(t)
port := testutil.RandomPort(t)
inv, _ := clitest.NewWithCommand(t, cmd,
"server",
"--in-memory",