fix: Adding a sighting takes a little bit of time.

pull/511/head
Raphaël Vinot 2019-12-12 11:47:03 +01:00
parent 24594a5aea
commit 637a9668c0
1 changed files with 1 additions and 0 deletions

View File

@ -841,6 +841,7 @@ class TestComprehensive(unittest.TestCase):
second = self.user_misp_connector.add_event(second) second = self.user_misp_connector.add_event(second)
current_ts = int(time.time()) current_ts = int(time.time())
time.sleep(5)
r = self.user_misp_connector.add_sighting({'value': first.attributes[0].value}) r = self.user_misp_connector.add_sighting({'value': first.attributes[0].value})
self.assertEqual(int(r.attribute_id), first.attributes[0].id) self.assertEqual(int(r.attribute_id), first.attributes[0].id)