tests/test-non-interactive-wsgi
changeset 5384 e3a0c092b4e2
parent 5337 8c5ef3b87cb1
child 5566 d74fc8dec2b4
--- a/tests/test-non-interactive-wsgi	Fri Oct 05 09:30:02 2007 -0700
+++ b/tests/test-non-interactive-wsgi	Fri Oct 05 12:17:01 2007 -0700
@@ -15,7 +15,7 @@
 from mercurial.ui import ui
 from mercurial import hg
 from StringIO import StringIO
-import sys
+import os, sys
 
 class FileLike(object):
     def __init__(self, real):
@@ -58,7 +58,7 @@
 	'PATH_INFO': '',
 	'QUERY_STRING': '',
 	'SERVER_NAME': '127.0.0.1',
-	'SERVER_PORT': '20059',
+	'SERVER_PORT': os.environ['HGPORT'],
 	'SERVER_PROTOCOL': 'HTTP/1.0'
 }