From a13daa8a6e74a31f6e5ee44139def0a263b00f9e Mon Sep 17 00:00:00 2001 From: Joe Francis Date: Fri, 13 Oct 2017 00:00:44 -0500 Subject: [PATCH] Concurrent::Mmap does not expose default_proc bf58182cc350a697b3eed67d8d1c41e32b8d27b2 changed underlying implementation from Hash to Concurrent.map which removes the ability to test this way. --- test/backend/memoize_test.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/backend/memoize_test.rb b/test/backend/memoize_test.rb index 5b63f23f..34489049 100644 --- a/test/backend/memoize_test.rb +++ b/test/backend/memoize_test.rb @@ -60,9 +60,6 @@ def test_lookup_concurrent_consistency backend = backend_impl.new memoized_lookup = backend.send(:memoized_lookup) - # make the 'default_proc' execution artificially slower to help reproduce : - default_proc = memoized_lookup.default_proc - memoized_lookup.default_proc = Proc.new { |h, k| sleep 0.1; default_proc.call(h, k) } assert_equal "[:foo, :scoped, :sample]", backend.translate('foo', scope = [:scoped, :sample])