yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <bofh@yhbt.net>
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	[thread overview]
Message-ID: <20221222090211.9056-5-bofh@yhbt.net> (raw)
In-Reply-To: <20221222090211.9056-1-bofh@yhbt.net>

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.puts "FAIL"
               rescue => e
-                s.puts "#{e.class}: #{e.message}"
+                s.puts("#{e.class}: #{e.message}".split("\n")[0])
             when nil

      parent reply	other threads:[~2022-12-22  9:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22  9:02 [PATCH 0/4] a few forgotten patches from last year Eric Wong
2022-12-22  9:02 ` [PATCH 1/4] test_buffer_tmpdir: drop fragile assertions Eric Wong
2022-12-22  9:02 ` [PATCH 2/4] http_response: clamp body read size Eric Wong
2022-12-22  9:02 ` [PATCH 3/4] standardize on 16384-byte reads Eric Wong
2022-12-22  9:02 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://yhbt.net/yahns/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221222090211.9056-5-bofh@yhbt.net \
    --to=bofh@yhbt.net \
    --cc=yahns-public@yhbt.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).