Skip to content

Commit

Permalink
Merge 2e680e3 into d9d4c6b
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaensch committed Oct 5, 2020
2 parents d9d4c6b + 2e680e3 commit 72da9cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bravado/testing/integration_test.py
Expand Up @@ -256,7 +256,7 @@ def redirect_test():

def run_bottle_server(port):
"""Wrapper function for bottle.run so that the child Python interpreter finds the bottle routes on Windows."""
bottle.run(quiet=True, host='localhost', port=port)
bottle.run(quiet=True, host='127.0.0.1', port=port)


class IntegrationTestingServicesAndClient:
Expand All @@ -281,15 +281,15 @@ def wait_unit_service_starts(url, max_wait_time=10):
)
try:
web_service_process.start()
server_address = 'http://localhost:{port}'.format(port=port)
server_address = 'http://127.0.0.1:{port}'.format(port=port)
wait_unit_service_starts(server_address, 10)
yield server_address
finally:
web_service_process.terminate()

@pytest.fixture(scope='session')
def not_answering_http_server(self):
yield 'http://localhost:{}'.format(ephemeral_port_reserve.reserve())
yield 'http://127.0.0.1:{}'.format(ephemeral_port_reserve.reserve())

@pytest.fixture(params=['result', 'response'])
def result_getter(self, request):
Expand Down

0 comments on commit 72da9cd

Please sign in to comment.