Skip to content

Commit

Permalink
Add sleep to test_get_alerts_data_for_incident
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Nov 4, 2024
1 parent bce1c5a commit dad7de2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_incidents.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ def test_get_alerts_data_for_incident(db_session, create_alert):
},
)

sleep(0.5)

alerts = db_session.query(Alert).all()

assert len(alerts) == 100

unique_fingerprints = db_session.query(
func.count(distinct(Alert.fingerprint))
).scalar()
Expand Down

0 comments on commit dad7de2

Please sign in to comment.