Skip to content

Commit

Permalink
Disabled test_s_random_bytes_is_fork_safe again
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 2, 2024
1 parent af69c46 commit f8c416e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_securerandom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def setup

# This test took 2 minutes on my machine.
# And 65536 times loop could not be enough for forcing PID recycle.
# We should run this test only on GitHub Actions.
# TODO: We should run this test only on GitHub Actions.
def test_s_random_bytes_is_fork_safe
begin
require 'openssl'
Expand All @@ -21,7 +21,7 @@ def test_s_random_bytes_is_fork_safe
SecureRandom.random_bytes(8)
pid, v1 = forking_random_bytes
assert(check_forking_random_bytes(pid, v1), 'Process ID not recycled?')
end if ENV["CI"] && RUBY_PLATFORM =~ /darwin/ && `sw_vers -productVersion`.to_i > 13 # for Apple Silicon
end if false # ENV["CI"] && RUBY_PLATFORM =~ /darwin/ && `sw_vers -productVersion`.to_i > 13 # for Apple Silicon

def forking_random_bytes
r, w = IO.pipe
Expand Down

0 comments on commit f8c416e

Please sign in to comment.