diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-01 13:44:00 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-01-05 12:52:11 -0500 |
commit | 5b1b9f78247e122804490b17112e94df32851464 (patch) | |
tree | e8b7580206627e5cd84e9fa4c01dcd0296344da6 /tests/proxy.conf | |
parent | 048af4c5063485b65d9919f6a7a5d28c1db02d66 (diff) | |
download | lighttpd-git-5b1b9f78247e122804490b17112e94df32851464.tar.gz |
[tests] use ephemeral ports in tests
avoid spurious test failures due to conflicts with ports in use by
other processes, which might occur when tests use hard-coded ports
Diffstat (limited to 'tests/proxy.conf')
-rw-r--r-- | tests/proxy.conf | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/proxy.conf b/tests/proxy.conf index ba2f49dd..23a5173f 100644 --- a/tests/proxy.conf +++ b/tests/proxy.conf @@ -1,10 +1,5 @@ +server.systemd-socket-activation = "enable" server.document-root = env.SRCDIR + "/tmp/lighttpd/servers/www.example.org/pages/" - -## bind to port (default: 80) -server.port = 2050 - -## bind to localhost (default: all interfaces) -server.bind = "localhost" server.errorlog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.error.log" server.breakagelog = env.SRCDIR + "/tmp/lighttpd/logs/lighttpd.breakage.log" server.name = "www.example.org" @@ -23,7 +18,7 @@ proxy.debug = 1 proxy.server = ( "" => ( "grisu" => ( "host" => "127.0.0.1", - "port" => 2048, + "port" => env.EPHEMERAL_PORT, ), )) |