Increase test deadline to 30 minutes to prevent spurious test failures (#11070)

* Increase test deadline to 30 minutes to prevent spurious test failures

* Reduce deadline to 2 minutes
This commit is contained in:
Madeesh Kannan 2022-07-04 18:37:09 +02:00 committed by GitHub
parent 5240baccfe
commit d36d66b7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,11 @@
import pytest import pytest
from spacy.util import get_lang_class from spacy.util import get_lang_class
from hypothesis import settings
# Functionally disable deadline settings for tests
# to prevent spurious test failures in CI builds.
settings.register_profile("no_deadlines", deadline=2*60*1000) # in ms
settings.load_profile("no_deadlines")
def pytest_addoption(parser): def pytest_addoption(parser):
try: try: