diff tests/test-non-interactive-wsgi @ 5384:e3a0c092b4e2

Allow tests to run in parallel.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 05 Oct 2007 12:17:01 -0700
parents 8c5ef3b87cb1
children d74fc8dec2b4
line wrap: on
line diff
--- 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'
 }