]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Relax throughput counter check 5613/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 11 Sep 2025 11:16:26 +0000 (14:16 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Thu, 11 Sep 2025 11:16:26 +0000 (14:16 +0300)
test/playwright/tests/scan.spec.mjs

index 2e6447fa5e59f67df18eb8d95b840db5f42aaa5c..0d30f64e2897f6c6cf783ff5137a18481dad3eb2 100644 (file)
@@ -124,8 +124,10 @@ test.describe.serial("Scan flow across WebUI tabs", () => {
 
         test("Throughput `Total messages` counter increased", async ({}, testInfo) => {
             testInfo.setTimeout(140000);
+            // With empty RRD the first PDP is lost, so only +1 is visible
             // Depending on row boundaries, throughput may show +2 or even +3
             const targetValues = [
+                scannedBefore.throughput + 1,
                 scannedBefore.throughput + 2,
                 scannedBefore.throughput + 3,
             ];