Sybren A. Stüvel 7fd8eca8d9 Manager: more gracefull handle SQLite "interrupted (9)" error
Wrap the SQLite error "interrupted (9)". That error is (as far as I
could figure out) caused by the context being closed. Unfortunately
there is no wrapping of the underlying context error, so it's not
possible to determine whether it was due to a 'deadline exceeded' error
or another cancellation cause (like upstream HTTP connection closing).

Primarily this makes a rather unreliable unit test properly reliable.
The code under test could return either `context.DeadlineExceeded` or
the "interrupted (9)" error (GORM + SQLite doesn't reliably chose one or
the other), and now this is cleanly tested for.
2024-05-28 16:07:23 +02:00
..
2024-05-28 16:07:22 +02:00
2024-05-28 14:46:42 +02:00
2024-05-28 16:07:22 +02:00
2022-07-01 12:34:40 +02:00
2024-05-28 14:46:42 +02:00
2023-07-06 16:08:57 +02:00
2024-05-28 14:46:42 +02:00