Skip to content

Commit

Permalink
Fix unit test: process no longer in session
Browse files Browse the repository at this point in the history
We don't keep the process in the session
  • Loading branch information
jdavcs committed Feb 17, 2023
1 parent 9f65940 commit 54e9768
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unit/app/queue_worker/test_database_heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def one_active_process():
update_time = process.update_time

def process_updated():
heartbeat_app.model.context.refresh(process)
session = heartbeat_app.model.context()
session.add(process)
session.refresh(process)
next_update_time = process.update_time
assert update_time < next_update_time

Expand Down

0 comments on commit 54e9768

Please sign in to comment.