diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py b/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py index 08af5e3473911b5cf4965b87c1d26340486ecba7..82691bda7c560c658ca9ffe6a4822e8e5c47f9c2 100644 --- a/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py +++ b/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py @@ -231,12 +231,12 @@ class TestArchiver(BaseIntegrationTestCase): self.assertEqual(9, len(sdp_archived_attrs)) def _wait_for_archiving( - self, attr_fullname: str, archive_event_period: int, max_wait: int = 10 + self, attr_fullname: str, archive_event_period_ms: int, max_wait: int = 10 ): wait = 0 records = self.retriever.get_lofar_attribute(attr_fullname) while not (len(records) > 0) and wait < max_wait: - time.sleep(archive_event_period) + time.sleep(archive_event_period_ms / 1000.0) records = self.retriever.get_lofar_attribute(attr_fullname) wait += 1 return records