From f8c416ebf2b1c39f3381f4b40a994e185cacdd6f Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 2 Dec 2024 14:22:30 +0900 Subject: [PATCH] Disabled test_s_random_bytes_is_fork_safe again --- test/test_securerandom.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb index a3761da..4c6bcf6 100644 --- a/test/test_securerandom.rb +++ b/test/test_securerandom.rb @@ -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' @@ -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