changeset 4325:b6b6979b4813

fix test slowness due to failing reverse DNS lookups
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 22 Aug 2008 22:16:13 +0200
parents 8ca7e2fd250d
children 07862b0663fd
files MoinMoin/web/request.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/web/request.py	Mon Aug 18 21:30:48 2008 +0200
+++ b/MoinMoin/web/request.py	Fri Aug 22 22:16:13 2008 +0200
@@ -103,7 +103,8 @@
                                  content_length=content_length)
 
         environ['HTTP_USER_AGENT'] = 'MoinMoin/TestRequest'
-        environ['REMOTE_ADDR'] = '10.10.10.10'
+        # must have reverse lookup or tests will be extremely slow:
+        environ['REMOTE_ADDR'] = '127.0.0.1'
 
         if environ_overrides:
             environ.update(environ_overrides)