From 3abf14632152910f4ae5974a13018961ae2bc65a Mon Sep 17 00:00:00 2001 From: Lemon-miaow Date: Mon, 28 Sep 2026 22:43:43 +0800 Subject: [PATCH] =?UTF-8?q?test(cli):=20=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E5=AF=BC=E5=87=BA=E6=9C=9F=E9=99=90=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=BB=99=E7=AC=AC=E4=B8=80=E6=AC=A1=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E7=95=99=E5=A4=9F=E5=90=AF=E5=8A=A8=E6=97=B6=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E5=BF=99=E6=97=B6=E4=B8=8D=E5=86=8D=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/felis/db_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/felis/db_test.go b/cmd/felis/db_test.go index ddc8812..14e4a59 100644 --- a/cmd/felis/db_test.go +++ b/cmd/felis/db_test.go @@ -551,7 +551,10 @@ func TestPreMigrateBackupExportsServers(t *testing.T) { func TestServerExportStopsWaitingWithTheContext(t *testing.T) { dir := newPodRig(t) writeTestFile(t, filepath.Join(dir, "servers_fail"), "99", 0o600) - ctx, cancel := context.WithTimeout(context.Background(), 300*time.Millisecond) + // Long enough for the first try to run to its refusal: starting the fake + // k3s on a busy machine can take a few hundred ms. Still far below the + // 10s retry wait, so waiting it out would fail the check below. + ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second) defer cancel() start := time.Now() _, err := exportMinecraftServers(ctx)