* [PATCH 4/4] test/test_ssl: workaround multi-line exception messages
2022-12-22 9:02 5% [PATCH 0/4] a few forgotten patches from last year Eric Wong
@ 2022-12-22 9:02 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-12-22 9:02 UTC (permalink / raw)
To: yahns-public
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
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] a few forgotten patches from last year
@ 2022-12-22 9:02 5% Eric Wong
2022-12-22 9:02 7% ` [PATCH 4/4] test/test_ssl: workaround multi-line exception messages Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-12-22 9:02 UTC (permalink / raw)
To: yahns-public
Dreading what breakage Rack 3.0 and Ruby 3.2 brings :<
Eric Wong (4):
test_buffer_tmpdir: drop fragile assertions
http_response: clamp body read size
standardize on 16384-byte reads
test/test_ssl: workaround multi-line exception messages
lib/yahns/http_client.rb | 2 +-
lib/yahns/proxy_http_response.rb | 10 ++++++++--
lib/yahns/req_res.rb | 6 +++---
test/test_buffer_tmpdir.rb | 2 --
test/test_ssl.rb | 2 +-
5 files changed, 13 insertions(+), 9 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-12-22 9:02 5% [PATCH 0/4] a few forgotten patches from last year Eric Wong
2022-12-22 9:02 7% ` [PATCH 4/4] test/test_ssl: workaround multi-line exception messages Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/yahns.git/
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).