Skip to content

Conversation

@rhenium
Copy link
Member

@rhenium rhenium commented Sep 30, 2025

  • Generate smaller parameters in test_new_generate. Generating 2048-bit parameters is slow and sometimes takes a few minutes on GitHub-hosted CI runners. Also test the DH.generate alias, not just DH.new.
  • Simplify test_new_break to just check exceptions raised in the block because it is redundant.
  • Remove unnecessary OpenSSL::PKey::DH#public_key calls.
  • Update bare assert with more appropriate methods.

 - Generate smaller parameters in test_new_generate. Generating 2048-bit
   parameters is slow and sometimes takes a few minutes on GitHub-hosted
   CI runners. Also test the DH.generate alias, not just DH.new.
 - Simplify test_new_break to just check exceptions raised in the block
   because it is redundant.
 - Remove unnecessary OpenSSL::PKey::DH#public_key calls.
 - Update bare "assert" with more appropriate methods.
@rhenium rhenium merged commit b77aef4 into ruby:master Sep 30, 2025
85 of 86 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant