From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLACK shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C5F5D1F953 for ; Thu, 22 Dec 2022 09:02:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yhbt.net; s=selector1; t=1671699731; bh=+9JqNYW07o85LR45Frmxa2JMyE/bpYZDSwxxMtbpk8o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qs5P5eZe36hFvrb9hcKSL9LViYXOgQoqSwKvYE2sO8fMedWcAN/Jn0hOVTB6EQp4x VLFW2zxpp/dvgpOXJPSbN54fEPHeRxFKNlV078l6eT84cQo3YjsPpoNDpHVbu2ouSe s8LhzanKGhJcQ+c4+KncGPBp8obJVy8KlORrcS3E= From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 1/4] test_buffer_tmpdir: drop fragile assertions Date: Thu, 22 Dec 2022 09:02:08 +0000 Message-Id: <20221222090211.9056-2-bofh@yhbt.net> In-Reply-To: <20221222090211.9056-1-bofh@yhbt.net> References: <20221222090211.9056-1-bofh@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: When tweaking buffer sizes, another IN_CREATE event can happen soon after the delete. --- test/test_buffer_tmpdir.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/test_buffer_tmpdir.rb b/test/test_buffer_tmpdir.rb index bac8017..39029ed 100644 --- a/test/test_buffer_tmpdir.rb +++ b/test/test_buffer_tmpdir.rb @@ -67,7 +67,6 @@ def test_output_buffer_tmpdir event = @ino.take assert_equal [:DELETE], event.events assert_equal name, event.name - refute File.exist?("#@tmpdir/#{name}") end ensure c.close if c @@ -101,7 +100,6 @@ def input_buffer(btype) event = ino.take assert_equal [:DELETE], event.events assert_equal name, event.name - refute File.exist?("#{tmpdir}/#{name}") end ensure c.close if c