Skip to content

Commit b51b02b

Browse files
authored
fix: add sleep before heartbeat to avoid unique constraint
1 parent 371f9bc commit b51b02b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diracx-routers/tests/jobs/test_status.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,7 @@ def test_heartbeat(normal_user_client: TestClient, valid_job_id: int):
11131113
)
11141114
r.raise_for_status()
11151115

1116+
sleep(1)
11161117
# Send another heartbeat and check that a Kill job command was set
11171118
#
11181119
payload = {valid_job_id: {"Vsize": 1235}}

0 commit comments

Comments
 (0)