You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e9a9566
Browse filesBrowse the repository at this point in the historyBrowse files
Check the activate_in/activate_at gates on the database clock instead of sleeping (#264)
* Check the activate_in gate on the database clock instead of sleeping
The test asserted nothing arrived 200ms after publishing a row due in
500ms. The gate is server-side (now() + 500ms at insert), so a slow
commit or an oversleeping event loop under load could push the check past
it and fail with the library behaving correctly. Assert the claimed row's
own timestamps instead: next_attempt_at is exactly 500ms after created_at,
and acquired_at is not before next_attempt_at.
* Check the activate_at gate on the database clock instead of sleeping
0 commit comments