From 491faf0a8f7020c1b8c625b936f28a4d0294f951 Mon Sep 17 00:00:00 2001 From: John Coffey Date: Tue, 27 Oct 2026 22:51:22 -0700 Subject: [PATCH] Tests: put the upload limits back at the end of the quota test The quota test sets a one-second upload lifetime and left it in place, so under load the next test's uploads could expire before their import (BlobNotFound in the purge test's Email/import). --- tests/src/system/quota.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/src/system/quota.rs b/tests/src/system/quota.rs index 13ee6f69..1fcdf536 100644 --- a/tests/src/system/quota.rs +++ b/tests/src/system/quota.rs @@ -2,6 +2,8 @@ * SPDX-FileCopyrightText: 2020 Stalwart Labs LLC * * SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL + * + * Modified by Coffey Labs in 2026 for INBUXA. */ use crate::utils::{ @@ -487,6 +489,20 @@ pub async fn test(test: &mut TestServer) { .registry_destroy(ObjectType::Account, [account_id, other_account_id]) .await .assert_destroyed(&[account_id, other_account_id]); + + // inbuxa: put the upload limits back; with a one-second upload lifetime + // the next suite's uploads can expire before their import under load + admin + .registry_update_setting( + Jmap::default(), + &[ + Property::UploadQuota, + Property::MaxUploadCount, + Property::UploadTtl, + ], + ) + .await; + admin.reload_settings().await; test.cleanup().await; } -- 2.54.0