Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Speed up some tests (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
AetherUnbound authored Feb 28, 2023
1 parent 3ab5e57 commit 3a9ffb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/dags/common/loader/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def test_upsert_records_replaces_updated_on_and_last_synced_with_source(
f"\nLast updated: {original_updated_on}\nSynced: {original_last_synced}"
)

time.sleep(1)
time.sleep(0.5)
sql.upsert_records_to_db_table(
postgres_conn_id, identifier, db_table=image_table, task=mock_pg_hook_task
)
Expand Down
2 changes: 1 addition & 1 deletion tests/dags/common/test_requester.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def mock_requests_get(url, params, **kwargs):

monkeypatch.setattr(requester.requests.Session, "get", mock_requests_get)

delay = 2
delay = 1
dq = requester.DelayedRequester(delay=delay)
start = time.time()
dq.get("http://fake_url")
Expand Down

0 comments on commit 3a9ffb9

Please sign in to comment.