Skip to content

Commit

Permalink
increasing the time constrain on the reading of dataset
Browse files Browse the repository at this point in the history
Due to compression the the time required two read both hourly and 10 min data  (tested at this line) increases to 1.3 s. Now putting it to 5 s max before an error is raised.
  • Loading branch information
BaptisteVandecrux committed Sep 11, 2024
1 parent ec15a39 commit 10a19af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/test_get_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_get_l2_raw(self):
self.assertEqual(dataset.attrs["station_id"], station_id)
self.assertIsInstance(dataset.attrs["date_created"], str)
date_created = pd.to_datetime(dataset.attrs["date_created"])
self.assertLess(t0 - date_created, datetime.timedelta(seconds=1))
self.assertLess(t0 - date_created, datetime.timedelta(seconds=5))
self.assertEqual(
dataset.attrs["date_issued"], dataset.attrs["date_created"]
)
Expand Down

0 comments on commit 10a19af

Please sign in to comment.