Skip to content

Commit 6dfd9bf

Browse files
authored
chg: [tests] added a sleep to account for the publishing changes
1 parent e8918ec commit 6dfd9bf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/testlive_comprehensive.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,10 @@ def test_search_publish_timestamp(self) -> None:
685685
self.assertEqual(len(events), 1)
686686
self.assertEqual(events[0].id, second.id)
687687

688+
# we need to sleep here as per 2.5.40 we've moved the publish timestamp setting to the background process instead of front loading it.
689+
# The default tick rate of the background worker is 5s so 10 seconds should be safe-ish. (assuming no other fuck-ups)
690+
time.sleep(10)
691+
688692
# Test 5 sec before timestamp of 2nd event
689693
events = self.pub_misp_connector.search(publish_timestamp=(second.publish_timestamp.timestamp()), pythonify=True)
690694
self.assertEqual(len(events), 1)

0 commit comments

Comments
 (0)