Commit 9cbd293
committed
fix: raise the worker hang budget in the create race test
The create race test capped each worker at 30 seconds. SQLite retries a
busy write up to lock_retry_attempts times, and every retry waits out
the 5 second busy handler, so a starved worker can run for about a
minute before it does any real work. The cap sat below that legitimate
worst case, and CI failed on Rails 7.1 and 7.2 while the same jobs
passed in a parallel run of the same commit.
Raise the budget to 180 seconds, so it reports a worker that hangs
rather than one that waits. Confirmed by forcing a worker to sleep past
a shortened budget and watching the assertion fail.1 parent 38d30b1 commit 9cbd293
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | | - | |
| 124 | + | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| |||
0 commit comments