Merge pull request #455 from coreos-inc/fixregtests

Use a different port number for each live server test case in the registry tests
This commit is contained in:
josephschorr 2015-09-08 10:41:33 -04:00
commit 610e946b53

View file

@ -68,11 +68,16 @@ class TestFeature(object):
data=json.dumps(dict(value=self.old_value)),
headers={'Content-Type': 'application/json'})
_PORT_NUMBER = 5001
class RegistryTestCase(LiveServerTestCase):
maxDiff = None
def create_app(self):
global _PORT_NUMBER
_PORT_NUMBER = _PORT_NUMBER + 1
app.config['TESTING'] = True
app.config['LIVESERVER_PORT'] = _PORT_NUMBER
return app
def setUp(self):