Skip to content

Commit

Permalink
chg: [tests] speculative fix for the published search
Browse files Browse the repository at this point in the history
- locally it seems to work as intended, curious what is going on here
  • Loading branch information
iglocska committed Jul 3, 2024
1 parent 8029968 commit d5a9920
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/testlive_comprehensive.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,8 @@ def test_simple_event(self) -> None:

bg_processing_state = self.admin_misp_connector.get_server_setting('MISP.background_jobs')['value']
self.admin_misp_connector.set_server_setting('MISP.background_processing', False, force=True)
self.pub_misp_connector.publish(second)
self.admin_misp_connector.publish(second)
time.sleep(1)
self.admin_misp_connector.set_server_setting('MISP.background_processing', bg_processing_state, force=True)
events = self.user_misp_connector.search(timestamp=timeframe, published=False)
self.assertEqual(len(events), 1)
Expand Down

0 comments on commit d5a9920

Please sign in to comment.