Skip to content

Commit

Permalink
Concurrent::Mmap does not expose default_proc
Browse files Browse the repository at this point in the history
bf58182 changed underlying implementation
from Hash to Concurrent.map which removes the ability to test this way.
  • Loading branch information
lostapathy committed Oct 13, 2017
1 parent bf58182 commit a13daa8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/backend/memoize_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit a13daa8

Please sign in to comment.