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=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham 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 A195A211BA for ; Wed, 26 Dec 2018 19:57:19 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 1/5] test/test_extras_exec_cgi.rb: improve test reliability Date: Wed, 26 Dec 2018 19:57:12 +0000 Message-Id: <20181226195716.31202-2-e@80x24.org> In-Reply-To: <20181226195716.31202-1-e@80x24.org> References: <20181226195716.31202-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Make the this test less multi-core/scheduler dependent. --- test/test_extras_exec_cgi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_extras_exec_cgi.rb b/test/test_extras_exec_cgi.rb index 3c71fd4..c6c5ad6 100644 --- a/test/test_extras_exec_cgi.rb +++ b/test/test_extras_exec_cgi.rb @@ -170,7 +170,7 @@ def _blocked_zombie(block_on, rtype) assert_match %r{\A\d+\n\z}, body exec_pid = body.to_i poke_until_dead exec_pid - assert_raises(EOFError) { c.read_nonblock(666) } + assert_raises(EOFError) { c.readpartial(666) } else raise "BUG in test, bad rtype" end -- EW