disable unneeded protocols in curl and fix unit tests on arm64

This commit is contained in:
Allen Ding 2024-09-03 15:37:38 -07:00
parent f71fba0c05
commit 5bcff0228b
3 changed files with 18 additions and 2 deletions

View file

@ -23,4 +23,5 @@ echo
sleep 1
echo "wisp server ready, running tests"
export SE_AVOID_STATS=true #turn of selenium telemetry
python3 tests/run_tests.py

View file

@ -1,5 +1,7 @@
import unittest
import shutil
import selenium.common.exceptions
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.by import By
@ -18,7 +20,12 @@ class JSTest(unittest.TestCase):
options.add_argument("--disable-gpu")
options.set_capability("goog:loggingPrefs", {"browser": "ALL"})
self.browser = webdriver.Chrome(options=options)
try:
self.browser = webdriver.Chrome(options=options)
except selenium.common.exceptions.NoSuchDriverException:
chromedriver_path = shutil.which("chromedriver")
service = webdriver.ChromeService(executable_path=chromedriver_path)
self.browser = webdriver.Chrome(options=options, service=service)
def tearDown(self):
self.browser.quit()