Minimal fix to build failure from #31211.

This one-line fix is already in main, from #31862. but that PR relies on other refactor PRs, and
all are too broad to apply to the patch release branch.

Signed-off-by: Scott Rigby <scott@r6by.com>
release-4.2 v4.2.4
Scott Rigby 4 weeks ago
parent f7c6e8f0f1
commit 3900f434fd
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -129,6 +129,7 @@ func setup(suite *TestRegistry, tlsEnabled, insecure bool, auth string) {
// Registry config // Registry config
config := &configuration.Configuration{} config := &configuration.Configuration{}
lnCfg := net.ListenConfig{}
ln, err := net.Listen("tcp", "127.0.0.1:0") ln, err := net.Listen("tcp", "127.0.0.1:0")
suite.Nil(err, "no error finding free port for test registry") suite.Nil(err, "no error finding free port for test registry")
defer func() { _ = ln.Close() }() defer func() { _ = ln.Close() }()

Loading…
Cancel
Save