- Notifications
You must be signed in to change notification settings - Fork918
Commit13285c3
committed
fix: handle postgres query cancellation in TestAcquireJobWithCancel_Cancel
The test was failing because it was checking for context.Canceled usingxerrors.Is, but postgres returns a different error ("pq: cancelingstatement due to user request") when a query is cancelled. This changeuses database.IsQueryCanceledError which properly handles bothcontext.Canceled and postgres-specific cancellation errors.1 parent04d202a commit13285c3
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
371 |
| - | |
| 371 | + | |
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
|
0 commit comments
Comments
(0)