diff --git a/listen_test.go b/listen_test.go index 3d151ed931..ed102b7853 100644 --- a/listen_test.go +++ b/listen_test.go @@ -236,7 +236,7 @@ func Test_Listen_Acme_TLS_Prefork(t *testing.T) { app := New() // invalid port - require.Error(t, app.Listen(":0", ListenConfig{ + require.Error(t, app.Listen(":99999", ListenConfig{ DisableStartupMessage: true, EnablePrefork: true, AutoCertManager: m, @@ -247,7 +247,7 @@ func Test_Listen_Acme_TLS_Prefork(t *testing.T) { assert.NoError(t, app.Shutdown()) }() - require.NoError(t, app.Listen(":99999", ListenConfig{ + require.NoError(t, app.Listen(":0", ListenConfig{ DisableStartupMessage: true, EnablePrefork: true, AutoCertManager: m,