test: Fix useless polling wait slowing tests

This commit is contained in:
FoxxMD
2026-08-25 13:15:22 +00:00
parent 9a93f13a7d
commit 68b7385f31
+2 -2
View File
@@ -1,7 +1,6 @@
import { loggerTest } from "@foxxmd/logging";
import chai, { expect } from 'chai';
import asPromised from 'chai-as-promised';
import EventEmitter from "events";
import { describe, it } from 'mocha';
import pEvent from "p-event";
import clone from 'clone';
@@ -464,8 +463,9 @@ const generateDeezerSource = async (options: DeezerInternalSourceOptions = {}) =
const source = new DeezerTestSource('test', {id: `test-${Date.now()}`,data: {arl: 'test'}, options}, {localUrl: new URL('https://example.com'), configDir: 'fake', logger: loggerTest, version: 'test'}, emitter);
source.queueIdleMs = 2;
source.queueConcurrency = 1;
source.stopPollingWaitInterval = 10;
await source.initialize();
await source.initTasks();
await source.startDiscoveryQueue();
return source;
}
const firstPlayDate = dayjs().subtract(1, 'hour');