From ad2b0fe7b6b9b1902ff49f0c19d69981000de69e Mon Sep 17 00:00:00 2001 From: pingqiu Date: Sat, 20 Jun 2026 16:29:12 -0700 Subject: [PATCH] test: keep delete safety cleanup fixture fresh --- seaweed-block/cmd/sw-block/main_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seaweed-block/cmd/sw-block/main_test.go b/seaweed-block/cmd/sw-block/main_test.go index 5b56e55be7..ae5bc8aed8 100644 --- a/seaweed-block/cmd/sw-block/main_test.go +++ b/seaweed-block/cmd/sw-block/main_test.go @@ -606,12 +606,13 @@ func TestOpsExplainProjectsDeletingCRFromCleanupSummary(t *testing.T) { t.Setenv("KUBERNETES_SERVICE_HOST", "10.0.0.1") cleanupSummary := filepath.Join(t.TempDir(), "cleanup-summary.txt") + cleanupObservedAt := time.Now().UTC().Format(time.RFC3339) if err := os.WriteFile(cleanupSummary, []byte(strings.Join([]string{ "cleanup_status=failed", "iscsi_residue_count=1", "failure_count=1", "reason_codes=iscsi_node_records_present", - "cleanup_observed_at=2026-06-17T08:00:00Z", + "cleanup_observed_at=" + cleanupObservedAt, }, "\n")), 0o600); err != nil { t.Fatal(err) }