Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Nov 1, 2024
1 parent 7be633b commit ca5a79d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions electionpage/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ def test_are_results_certified_initializes_correctly(self):

# Wait for the object to be loaded
self._ensure_eventually_asserts(
ScrapableElectionPage.objects.filter(slug='cuteslug').exists
)
lambda: self.assertTrue(
ScrapableElectionPage.objects.filter(
slug='cuteslug').exists()))

# Then ensure all scrapers have areResultsCertified
scrapableElectionPage = ScrapableElectionPage.objects.get(slug='cuteslug')
Expand Down

0 comments on commit ca5a79d

Please sign in to comment.