Skip to content

Commit

Permalink
Fix flaky test_patched_db_session
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Oct 16, 2023
1 parent 20fb224 commit ebb7e7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tribler/core/utilities/tests/test_pony_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import time
from unittest.mock import patch

import pytest
Expand Down Expand Up @@ -56,6 +57,7 @@ class Entity1(db.Entity):
def _perform_queries():
for i in range(10):
Entity1(a=i)
time.sleep(0.01)
db.commit()
db.rollback()
Entity1.select().fetch()
Expand Down

0 comments on commit ebb7e7d

Please sign in to comment.