Skip to content

Commit

Permalink
tweaking DataManagerTest as still getting hung up in CI test run
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean-McCann-HG committed Apr 21, 2024
1 parent 6eebdcc commit a33efdd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions QGIS-AIMS-Plugin/test/DataManager_Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ def setUp(self):

def initDM(self) -> DataManager:
dm = DataManager(initialise=self.init)
dm.pull()
self.init = False
if self.init:
dm.pull()
self.init = False
return dm

def tearDown(self):
Expand All @@ -154,7 +155,9 @@ def tearDown(self):

def test10_rf(self):
len1 = self.dm.persist.ADL.get(self.ar)
print(f'Test_3_DataManagerCFRF -- LEN 1: {len1}')
time.sleep(TS1)
print(f'Test_3_DataManagerCFRF -- LEN 1: {len2}')
len2 = self.dm.persist.ADL.get(self.ar)
self.assertNotEqual(len1,len2,'Resolutionfeed didn\'t update within {} seconds'.format(TS1))

Expand Down Expand Up @@ -223,6 +226,7 @@ def test20_add(self):
resp = None
while not resp:
resp = self.dm.response(self.ac)
print(f'Waiting for Response to be valid: {resp}')
for r in resp:
self.assertTrue(isinstance(r, AddressChange))
time.sleep(5)
Expand Down

0 comments on commit a33efdd

Please sign in to comment.