Skip to content

Commit

Permalink
update test timeout and show progress to false (#3392)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 authored Dec 20, 2024
1 parent d8c21ca commit ca43123
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/verify_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def group_walk(groups, nc_d, current_group):
return subsetted_ds_new


@pytest.mark.timeout(600)
@pytest.mark.timeout(1200)
def test_spatial_subset(collection_concept_id, env, granule_json, collection_variables,
harmony_env, tmp_path: pathlib.Path, bearer_token, skip_spatial):
test_spatial_subset.__doc__ = f"Verify spatial subset for {collection_concept_id} in {env}"
Expand Down Expand Up @@ -459,7 +459,7 @@ def test_spatial_subset(collection_concept_id, env, granule_json, collection_var
# Submit harmony request and download result
job_id = harmony_client.submit(harmony_request)
logging.info("Submitted harmony job %s", job_id)
harmony_client.wait_for_processing(job_id, show_progress=True)
harmony_client.wait_for_processing(job_id, show_progress=False)
subsetted_filepath = None
for filename in [file_future.result()
for file_future
Expand Down Expand Up @@ -561,7 +561,7 @@ def test_spatial_subset(collection_concept_id, env, granule_json, collection_var
if not np.any(valid_lon) or not np.any(valid_lat):
pytest.fail("No data in lon and lat")

@pytest.mark.timeout(600)
@pytest.mark.timeout(1200)
def test_temporal_subset(collection_concept_id, env, granule_json, collection_variables,
harmony_env, tmp_path: pathlib.Path, bearer_token, skip_temporal):
test_spatial_subset.__doc__ = f"Verify temporal subset for {collection_concept_id} in {env}"
Expand All @@ -588,5 +588,5 @@ def test_temporal_subset(collection_concept_id, env, granule_json, collection_va
job_id = harmony_client.submit(harmony_request)
logging.info("Submitted harmony job %s", job_id)

harmony_client.wait_for_processing(job_id, show_progress=True)
harmony_client.wait_for_processing(job_id, show_progress=False)
assert harmony_client.status(job_id).get('status') == "successful"

0 comments on commit ca43123

Please sign in to comment.