Remove assert matching stderr output in test_sni. #158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 jackorp@6cb9bf6 the output is only
written if $VERBOSE is true. This happens when
--verbose
is providedto the Ruby run arguments, or when the tests are ran via
rake
.$stderr is still caught, but discarded to not pollute test run output.
Ran into this in Fedora when updating the gem. Since we do not use
rake
to cut down on dependencies in package buildroot,$VERBOSE
isn't set, I assumerake
at some point sets the variable to true. However, I believe that if there is an assert relying on a specific value of$VERBOSE
it should be set for the duration it is needed in the test itself.