Skip to content

Commit c3ded77

Browse files
committed
🧪 Fix sender tests
1 parent aafae99 commit c3ded77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tests/unit/test_user_alert.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ def test_user_alert_status_offline(offline_cache_setup) -> None:
199199

200200
# Get online aler, check status is not set
201201
_online_alert = UserAlert(_sender.id_mapping.get(_alert.id))
202-
assert not _online_alert.get_status(run_id=_id_mapping.get(_run.id))
202+
assert not _online_alert.get_status(run_id=_sender.id_mapping.get(_run.id))
203203

204204
_alert.set_status(_run.id, "critical")
205205
_alert.commit()
206206
time.sleep(1)
207207

208208
# Check online status is still not set as change has not been sent
209209
_online_alert.refresh()
210-
assert not _online_alert.get_status(run_id=_id_mapping.get(_run.id))
210+
assert not _online_alert.get_status(run_id=_sender.id_mapping.get(_run.id))
211211

212212
_sender = Sender(_alert._local_staging_file.parents[1], 1, 10, throw_exceptions=True)
213213
_sender.upload(["alerts"])

0 commit comments

Comments
 (0)