From 10a19af747c538fe33415b854d88560169e69eab Mon Sep 17 00:00:00 2001 From: Baptiste Vandecrux <35140661+BaptisteVandecrux@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:59:07 +0200 Subject: [PATCH] increasing the time constrain on the reading of dataset 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. --- tests/e2e/test_get_l2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/test_get_l2.py b/tests/e2e/test_get_l2.py index 2796358f..7926f689 100644 --- a/tests/e2e/test_get_l2.py +++ b/tests/e2e/test_get_l2.py @@ -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"] )