Skip to content

Commit

Permalink
trying medium class
Browse files Browse the repository at this point in the history
  • Loading branch information
apetenchea committed Oct 16, 2023
1 parent a0708fe commit 2acb43e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1

jobs:
run-tests:
resource_class: small
resource_class: medium
parameters:
python-version:
type: string
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion tests/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion tests/test_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ def test_license(sys_db, enterprise):
assert set(license.keys()) == {
"upgrading",
"features",
"hash",
"license",
"version",
"status",
Expand Down

0 comments on commit 2acb43e

Please sign in to comment.