Commit Graph

9 Commits

Author SHA1 Message Date
Claudio Ortolina 61cda5a62c Explicitly set auto-refresh config for LastFm refresh 2024-12-03 19:58:17 +00:00
Claudio Ortolina f58a5e83b7 Revert "Reduce pool size in test"
This reverts commit 7a26b6bda6.
2024-12-03 19:42:52 +00:00
Claudio Ortolina 7a26b6bda6 Reduce pool size in test
Due to SQLite having one single write transaction, database tests cannot
be executed async, making a large pool ineffective at best. A setting of
10 is enough for those tests where we perform multiple read operations
(which tend to be sequential anyway).

Test execution time before and after this change remains effectively the
same.
2024-11-30 22:41:56 +00:00
Claudio Ortolina 3facdcb5bd Compile dev routes in test
As the route is rendered in the stats page, it needs to be enabled in
all Mix environments in order to avoid compile time warnings.
2024-11-29 15:26:59 +00:00
Claudio Ortolina 18ae8b7866 Refactor last_fm configuration
Move all configuration outside of the LastFm module, so that it's not
polluted with references to the parent music_library application.
2024-11-06 12:09:38 +00:00
Claudio Ortolina d818cdbae5 Don't run LastFm.Feed in tests 2024-11-04 09:45:05 +00:00
Claudio Ortolina e4c0ce58f6 Increase test pool size to avoid resource contention 2024-10-08 20:37:28 +01:00
Claudio Ortolina 94ca2ab625 Move databases into /data 2024-10-07 08:12:05 +01:00
Claudio Ortolina d547ee6f8d Generate project
Using `mix phx.new music_library --database sqlite3 --binary-id --no-mailer`
2024-09-12 14:05:08 +01:00