From 4c5fd11f1fbe0fc07e3333444b677c85bebeeb75 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Wed, 2 Sep 2026 18:28:08 +0000 Subject: [PATCH] increase rate duration to make wkae interval less sensitive --- src/backend/tests/lastfm/lastfm.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/tests/lastfm/lastfm.test.ts b/src/backend/tests/lastfm/lastfm.test.ts index 7a4fdaf9..579f7e6a 100644 --- a/src/backend/tests/lastfm/lastfm.test.ts +++ b/src/backend/tests/lastfm/lastfm.test.ts @@ -155,7 +155,7 @@ describe('#LFM Rate Limiting', function () { secret: '', session: '', urlBase: 'https://lfmtest.local/2.0', - rateLimit: {points: 1, duration: 0.01} + rateLimit: {points: 1, duration: 0.03} }, { logger: loggerTest, localUrl: new URL('http://localhost:9078'), @@ -169,7 +169,7 @@ describe('#LFM Rate Limiting', function () { for(let i = 0; i < 5; i++) { lfm.testAuth().then(() => null).catch((e) => {throw e;}); } - await sleep(31); + await sleep(90); expect(callCount).to.eq(3); })(); }); -- 2.51.2