Anonymous avatar Anonymous committed 8b4a6dd

Use an arbitrary high port (54583) instead of a common lower port (8080) for running tests

Comments (0)

Files changed (3)

cherrypy/test/benchmark.py

     --notests:     start the server but do not run the tests; this allows
                    you to check the tested pages with a browser
     --help:        show this help message
-    --cpmodpy:     run tests via apache on 8080 (with the builtin _cpmodpy)
-    --modpython:   run tests via apache on 8080 (with modpython_gateway)
+    --cpmodpy:     run tests via apache on 54583 (with the builtin _cpmodpy)
+    --modpython:   run tests via apache on 54583 (with modpython_gateway)
     --ab=path:     Use the ab script/executable at 'path' (see below)
     --apache=path: Use the apache script/exe at 'path' (see below)
     
     'log.error.file': '',
     'environment': 'production',
     'server.socket_host': '127.0.0.1',
-    'server.socket_port': 8080,
+    'server.socket_port': 54583,
     'server.max_request_header_size': 0,
     'server.max_request_body_size': 0,
     'engine.deadlock_poll_freq': 0,
 
 Server Software:        CherryPy/3.1beta
 Server Hostname:        127.0.0.1
-Server Port:            8080
+Server Port:            54583
 
 Document Path:          /static/index.html
 Document Length:        14 bytes
         pyopts.append(("wsgi.application", "cherrypy::tree"))
         pyopts.append(("wsgi.startup", "cherrypy.test.benchmark::startup_modpython"))
         handler = "modpython_gateway::handler"
-        s = s(port=8080, opts=pyopts, apache_path=APACHE_PATH, handler=handler)
+        s = s(port=54583, opts=pyopts, apache_path=APACHE_PATH, handler=handler)
     else:
         pyopts.append(("cherrypy.setup", "cherrypy.test.benchmark::startup_modpython"))
-        s = s(port=8080, opts=pyopts, apache_path=APACHE_PATH)
+        s = s(port=54583, opts=pyopts, apache_path=APACHE_PATH)
     
     try:
         s.start()

cherrypy/test/helper.py

         conf = {
             'scheme': 'http',
             'protocol': "HTTP/1.1",
-            'port': 8080,
+            'port': 54583,
             'host': '127.0.0.1',
             'validate': False,
             'conquer': False,

cherrypy/test/test_mime.py

             ('Content-Type', 'multipart/form-data; '
                  'boundary=----------KM7Ij5cH2KM7Ef1gL6ae0ae0cH2gL6'),
             ('User-Agent', 'Shockwave Flash'),
-            ('Host', 'www.example.com:8080'),
+            ('Host', 'www.example.com:54583'),
             ('Content-Length', '499'),
             ('Connection', 'Keep-Alive'),
             ('Cache-Control', 'no-cache'),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.