Browse Source

Add extra command line parameter to improve Selenium stability

pull/1426/head
Safihre 5 years ago
parent
commit
b38a3cc97c
  1. 4
      tests/testhelper.py

4
tests/testhelper.py

@ -20,6 +20,7 @@ tests.testhelper - Basic helper functions
"""
import os
import sys
import time
import unittest
from http.client import RemoteDisconnected
@ -123,6 +124,9 @@ class SABnzbdBaseTest(unittest.TestCase):
if "CI" in os.environ:
driver_options.add_argument("--headless")
driver_options.add_argument("--no-sandbox")
# Needed for stability on Linux, doesn't work on Windows
if not sys.platform.startswith("win"):
driver_options.add_argument("--single-process")
cls.driver = webdriver.Chrome(options=driver_options)
# Get the newsserver-info, if available

Loading…
Cancel
Save