[READ-ONLY] Mirror of https://github.com/FoxxMD/multi-scrobbler. Scrobble plays from multiple sources to multiple clients docs.multi-scrobbler.app
deezer docker jellyfin koito lastfm listenbrainz maloja mopidy mpris music music-assistant plex scrobble self-hosted spotify subsonic tautulli youtube-music
0

Configure Feed

Select the types of activity you want to include in your feed.

test: Fix db error test using transient db

FoxxMD (Jul 9, 2026, 1:27 PM UTC) 8fc892a7 fd591be3

+10 -13
+10 -13
src/backend/tests/database/drizzle.test.ts
··· 566 566 describe('Serializes Errors', function() { 567 567 568 568 it('serializes errors correctly', async function () { 569 + try { 570 + const db = await transientDb(); 571 + const component = await db.insert(components).values(fixtureCreateComponent()).returning(); 569 572 570 - await withLocalTmpDir(async () => { 571 - try { 572 - let [db, _] = await getMigratedDb(getDbPath('ms', process.cwd())); 573 - const component = await db.insert(components).values(fixtureCreateComponent()).returning(); 574 - 575 - const playRepo = new DrizzlePlayRepository(db); 576 - const playData: RepositoryCreatePlayOpts = { ...fixtureCreatePlay({ componentId: component[0].id, play: generatePlayWithLifecycle({ lifecycleSteps: { preCompare: [false] } }) }), state: 'queued', input: { data: undefined } }; 577 - const p = await playRepo.createPlays([playData]); 578 - expect(p[0].play.lifecycle[0].error.cause).is.not.undefined; 579 - } catch (e) { 580 - throw e; 581 - } 582 - }, { unsafeCleanup: true, postfix: 'serializeStageError' }); 573 + const playRepo = new DrizzlePlayRepository(db); 574 + const playData: RepositoryCreatePlayOpts = { ...fixtureCreatePlay({ componentId: component[0].id, play: generatePlayWithLifecycle({ lifecycleSteps: { preCompare: [false] } }) }), state: 'queued', input: { data: undefined } }; 575 + const p = await playRepo.createPlays([playData]); 576 + expect(p[0].play.lifecycle[0].error.cause).is.not.undefined; 577 + } catch (e) { 578 + throw e; 579 + } 583 580 }); 584 581 585 582 });