mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-04 08:25:26 +03:00
86ccc92875
The SQL aggregation introduced in #7342 and the signed BIGINT overflow fix merged in #7323 are already in main. Consolidate and extend the shared SQLite/PostgreSQL regression without changing runtime behavior. Cover 11 quota boundary cases, including depleted-before-disabled precedence, disabled clients below quota, mixed-sign exact-limit comparisons and negative quotas. Reset traffic counters and client enable state for each case and assert both remote-node and fleet counts. Validation: all 12 CI jobs passed (run 47180136393), including PostgreSQL boundary regressions, race and node E2E. Independent Lenovo SQLite tests passed (6 top-level tests), and 101,000 SQL arithmetic comparisons matched the integer oracle. No schema, API or CI changes. Refs #7319, #7323, #7342.