From 2acb43e72e2b1f0e78352a4599d1e3c0121cf806 Mon Sep 17 00:00:00 2001 From: Alex Petenchea Date: Mon, 16 Oct 2023 16:16:10 +0300 Subject: [PATCH] trying medium class --- .circleci/config.yml | 2 +- tests/conftest.py | 2 +- tests/test_async.py | 8 +++++++- tests/test_database.py | 1 - 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3a11f726..ef49aa07 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ version: 2.1 jobs: run-tests: - resource_class: small + resource_class: medium parameters: python-version: type: string diff --git a/tests/conftest.py b/tests/conftest.py index ea97c6ed..61423610 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -70,7 +70,7 @@ def pytest_configure(config): cluster = config.getoption("cluster") host_resolver = PeriodicHostResolver(host_count=len(hosts), switch_timeout=1) - http_client = DefaultHTTPClient(retry_attempts=5) + http_client = DefaultHTTPClient(request_timeout=120) client = ArangoClient( hosts=hosts, host_resolver=host_resolver, http_client=http_client diff --git a/tests/test_async.py b/tests/test_async.py index 61335777..aa061f57 100644 --- a/tests/test_async.py +++ b/tests/test_async.py @@ -16,6 +16,12 @@ from tests.helpers import extract +@pytest.fixture(autouse=True) +def teardown(db): + yield + db.clear_async_jobs() + + def wait_on_job(job): """Block until the async job is done.""" while job.status() != "done": @@ -242,7 +248,7 @@ def test_async_list_jobs(db, col, docs): assert job3.id in job_ids # Test list async jobs that are pending - job4 = async_db.aql.execute("RETURN SLEEP(0.3)") + job4 = async_db.aql.execute("RETURN SLEEP(3)") assert db.async_jobs(status="pending") == [job4.id] wait_on_job(job4) # Make sure the job is done diff --git a/tests/test_database.py b/tests/test_database.py index 9ccec2c6..046754ad 100644 --- a/tests/test_database.py +++ b/tests/test_database.py @@ -344,7 +344,6 @@ def test_license(sys_db, enterprise): assert set(license.keys()) == { "upgrading", "features", - "hash", "license", "version", "status",