Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Feb 6, 2024
1 parent 0d84d9b commit 390b852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/planning/events/events_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,4 +531,4 @@ def test_planning_item_is_published_with_events(self):
planning_item = planning_service.find_one(req=None, _id=planning_id[0])
self.assertEqual(len([planning_item]), 1)
self.assertEqual(planning_item.get("state"), "scheduled")
self.assertEqual(planning_item.get("versionposted"), now)
assert now <= planning_item.get("versionposted") < now + timedelta(seconds=5)

0 comments on commit 390b852

Please sign in to comment.