From d3b8dc2cd751da415b6ea491bbbf816acb989b7d Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Fri, 10 Mar 2023 15:07:04 +0100
Subject: [PATCH] Fix sleep when waiting for archive period

---
 .../integration_test/default/toolkit/test_archiver.py         | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py b/tangostationcontrol/tangostationcontrol/integration_test/default/toolkit/test_archiver.py
index 08af5e347..82691bda7 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
-- 
GitLab