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.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF 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 6BA8C1FAF1 for ; Thu, 22 Dec 2022 09:02:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yhbt.net; s=selector1; t=1671699732; bh=3naKCLdaHvMf/lI8hwSvJF7IHDh10woHWXLenDi+OLI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oDIZDeYGHJCO4RBaKddrJHftLDboZQg4VJpiJZRDqgW6piqjySfLaVg+o4gSjKc5x VN7IRhlQRCrxOfsxO1rPcBYhBQOK4Ur/xtpkbk4BHK3h6TN/1rbmB+e9XWZyeW/S7Y FbrdSmERAV9xh72rUrK8Rb57agx08StZLrH5HYCE= From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 4/4] test/test_ssl: workaround multi-line exception messages Date: Thu, 22 Dec 2022 09:02:11 +0000 Message-Id: <20221222090211.9056-5-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: Needed for Ruby 3.1, and likely 3.2, as well... --- test/test_ssl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_ssl.rb b/test/test_ssl.rb index 7909094..9442ec8 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -178,7 +178,7 @@ def test_ssl_hijack s.any_old_invalid_test_method s.puts "FAIL" rescue => e - s.puts "#{e.class}: #{e.message}" + s.puts("#{e.class}: #{e.message}".split("\n")[0]) end when nil s.close