diff options
-rw-r--r-- | tests/util/httpd.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/util/httpd.py b/tests/util/httpd.py index 4d7dde94b..03b44d654 100644 --- a/tests/util/httpd.py +++ b/tests/util/httpd.py @@ -125,7 +125,8 @@ class TestServer(threading.Thread): try: self.httpd = CompatTCPServer(('' , self._port), handle) except: - self.httpd = CompatTCPServer(('' , self._port + random.randint(1, 100)), handle) + self._port = self._port + random.randint(1, 100) + self.httpd = CompatTCPServer(('' , self._port), handle) def port(self): return self._port |