mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Fix CI (#6196)
* Update `vcpkg` to 2025.09.17 * Pin selenium version * Use `localhost` instead of `0.0.0.0`
This commit is contained in:
1 parent
3473d824a8
commit
9a5d5d6194
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -90,7 +90,7 @@ lto = "thin"
|
||||
git = "https://github.com/microsoft/vcpkg"
|
||||
# The revision of the vcpkg repository to use
|
||||
# https://github.com/microsoft/vcpkg/tags
|
||||
rev = "2024.02.14"
|
||||
rev = "2025.09.17"
|
||||
|
||||
[package.metadata.vcpkg.target]
|
||||
x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md", dev-dependencies = ["openssl" ] }
|
||||
|
||||
@@ -41,7 +41,7 @@ atexit.register(lambda: server_proc and server_proc.terminate())
|
||||
|
||||
|
||||
# From https://gist.github.com/butla/2d9a4c0f35ea47b7452156c96a4e7b12
|
||||
def wait_for_port(port, host="0.0.0.0", timeout=5.0):
|
||||
def wait_for_port(port, host="localhost", timeout=5.0):
|
||||
"""Wait until a port starts accepting TCP connections.
|
||||
Args:
|
||||
port (int): Port number.
|
||||
@@ -94,7 +94,7 @@ def wdriver(request):
|
||||
options.add_argument("-headless")
|
||||
driver = Driver(options=options)
|
||||
try:
|
||||
driver.get(f"http://0.0.0.0:{PORT}")
|
||||
driver.get(f"http://localhost:{PORT}")
|
||||
WebDriverWait(driver, 5).until(
|
||||
EC.presence_of_element_located((By.ID, "rp_loaded"))
|
||||
)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
pytest
|
||||
selenium
|
||||
selenium==4.36.0
|
||||
certifi
|
||||
Reference in new issue
Block a user