Skip to content

Commit

Permalink
Fix CacheDatabaseAdapter tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Dec 4, 2023
1 parent 7576d1f commit 8ba157e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ def setup(self):

def teardown(self):
# Tests will fail if Redis is not flushed on tear down
time.sleep(0.2)
self.database.flush() # Comment this line out to preserve data between tests for debugging
time.sleep(1.0) # Ensure clean slate
time.sleep(0.5) # Ensure clean slate

@pytest.mark.asyncio
async def test_load_general_objects_when_nothing_in_cache_returns_empty_dict(self):
Expand Down

0 comments on commit 8ba157e

Please sign in to comment.