Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4ec8c12

Browse files
committedNov 25, 2024
test_sni: Remove assert for specific stderr output.
test_sni should be testing SNI use, it doesn't need to check for specific stderr output which isn't shown by default. The test test_sni in test_https.rb file checks stderr output for information about primes being generated. Since commit 6cb9bf6 the output is only written if $VERBOSE is true. This happens when `--verbose` is provided to the Ruby run arguments, or when the tests are ran via `rake`. $stderr is still caught, but discarded to not pollute test run output in the case $VERBOSE is true.
1 parent cde6dd4 commit 4ec8c12

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎test/webrick/test_https.rb

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ def test_sni
8787
$stderr = old_stderr
8888
end
8989

90-
assert_match(/\A([.+*]+\n)+\z/, stderr_buffer.string)
9190
assert_equal("master", https_get(addr, port, "localhost", "/localhost"))
9291
assert_equal("master", https_get(addr, port, "unknown", "/unknown", "localhost"))
9392
assert_equal("vhost1", https_get(addr, port, "vhost1", "/vhost1"))

0 commit comments

Comments
 (0)
Please sign in to comment.