Skip to content

Commit ef4f4c0

Browse files
committed
Use localhost instead of 0.0.0.0
1 parent bc778ec commit ef4f4c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wasm/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def pytest_sessionfinish(session):
4141

4242

4343
# From https://gist.github.com/butla/2d9a4c0f35ea47b7452156c96a4e7b12
44-
def wait_for_port(port, host="0.0.0.0", timeout=5.0):
44+
def wait_for_port(port, host="localhost", timeout=5.0):
4545
"""Wait until a port starts accepting TCP connections.
4646
Args:
4747
port (int): Port number.
@@ -94,7 +94,7 @@ def wdriver(request):
9494
options.add_argument("-headless")
9595
driver = Driver(options=options)
9696
try:
97-
driver.get(f"http://0.0.0.0:{PORT}")
97+
driver.get(f"http://localhost:{PORT}")
9898
WebDriverWait(driver, 5).until(
9999
EC.presence_of_element_located((By.ID, "rp_loaded"))
100100
)

0 commit comments

Comments
 (0)