From 198e48d4f8fef79fb40d7bb16ed31fffb05f4d20 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Tue, 20 Oct 2026 13:39:18 +0200 Subject: [PATCH] =?UTF-8?q?Prove:=20il=20commento=20dell'attesa=20sul=20da?= =?UTF-8?q?tabase=20dice=20ci=C3=B2=20che=20si=20=C3=A8=20visto,=20non=20u?= =?UTF-8?q?na=20causa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il commento di TestLibrary.DeleteClosedFileAsync dava per certo che il file appena chiuso fosse tenuto dall'antivirus. È solo una deduzione: su un PC il file restava in uso per pochi millisecondi, il Restart Manager non elencava alcun processo e Defender era attivo, ma la causa non è stata dimostrata (la revisione non ha riprodotto il caso). Il commento ora lo dice, così nessuno smette di cercare né copia l'attesa nel prodotto per una causa mai vista. Il codice non cambia. Co-Authored-By: Claude Opus 5.5 --- tests/Febe.Tests/Support/TestLibrary.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Febe.Tests/Support/TestLibrary.cs b/tests/Febe.Tests/Support/TestLibrary.cs index 9763bd0..c549819 100644 --- a/tests/Febe.Tests/Support/TestLibrary.cs +++ b/tests/Febe.Tests/Support/TestLibrary.cs @@ -71,10 +71,10 @@ internal sealed class TestLibrary : IAsyncDisposable } /// - /// Deletes a file Febe has already closed. On Windows a file that another program holds open cannot be deleted, and a - /// database just written is sometimes held for a few milliseconds by a program that scans new files (the real-time - /// antivirus): that sharing violation is waited out (at most 5 s). On Linux a delete never meets one, so the first - /// attempt is the only one. + /// Deletes a file Febe has already closed. On Windows a file still held open elsewhere cannot be deleted, and on one PC a + /// database just closed was now and then held for a few milliseconds by something outside Febe (Restart Manager listed + /// no process; probably the real-time antivirus, which was active, but the cause was never shown): that sharing + /// violation is waited out (at most 5 s). On Linux a delete never meets one, so the first attempt is the only one. /// private static async Task DeleteClosedFileAsync(string path) {