We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
localhost
0.0.0.0
1 parent bc778ec commit ef4f4c0Copy full SHA for ef4f4c0
wasm/tests/conftest.py
@@ -41,7 +41,7 @@ def pytest_sessionfinish(session):
41
42
43
# From https://gist.github.com/butla/2d9a4c0f35ea47b7452156c96a4e7b12
44
-def wait_for_port(port, host="0.0.0.0", timeout=5.0):
+def wait_for_port(port, host="localhost", timeout=5.0):
45
"""Wait until a port starts accepting TCP connections.
46
Args:
47
port (int): Port number.
@@ -94,7 +94,7 @@ def wdriver(request):
94
options.add_argument("-headless")
95
driver = Driver(options=options)
96
try:
97
- driver.get(f"http://0.0.0.0:{PORT}")
+ driver.get(f"http://localhost:{PORT}")
98
WebDriverWait(driver, 5).until(
99
EC.presence_of_element_located((By.ID, "rp_loaded"))
100
)
0 commit comments