From 578fb08dab8aba8acc100c6f874f3e3aa782b99e Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 8 Oct 2026 11:41:32 +0800 Subject: [PATCH] =?UTF-8?q?test(pool):=20=E4=BF=AE=E5=A4=8D=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E4=B8=AD=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E6=97=A5=E6=9C=9F=E5=AF=BC=E8=87=B4=E7=A7=9F?= =?UTF-8?q?=E7=BA=A6=E8=BF=87=E6=9C=9F=E5=88=A4=E5=AE=9A=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_account_lease_reaper.py | 2 +- tests/test_account_pool.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_account_lease_reaper.py b/tests/test_account_lease_reaper.py index 3cb6be0..9182d9b 100644 --- a/tests/test_account_lease_reaper.py +++ b/tests/test_account_lease_reaper.py @@ -19,7 +19,7 @@ from web.backend.models import ( from web.backend.services import account_pool as pool from web.backend.services.automation.jobs import account_lease_reaper as reaper -NOW = datetime(2026, 10, 7, 12, 0, 0, tzinfo=UTC) +NOW = datetime.now(UTC).replace(microsecond=0) class _ReaperBase: diff --git a/tests/test_account_pool.py b/tests/test_account_pool.py index a872517..ff9a04b 100644 --- a/tests/test_account_pool.py +++ b/tests/test_account_pool.py @@ -19,7 +19,7 @@ from tests.support.db import get_test_engine, make_test_session from web.backend.models import Account, AccountEvent, AccountLease, DouyuTask, User from web.backend.services import account_pool as pool -NOW = datetime(2026, 10, 7, 10, 0, 0, tzinfo=UTC) +NOW = datetime.now(UTC).replace(microsecond=0) COMMODITY = "20260120QYOOB_bag10"