Skip to content

Commit

Permalink
Merge pull request #388 from lostapathy/travis_tests
Browse files Browse the repository at this point in the history
Fix travis: Concurrent.map does not expose default_proc
  • Loading branch information
radar committed Oct 13, 2017
2 parents bf58182 + a13daa8 commit 5e68c19
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/backend/memoize_test.rb
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 5e68c19

Please sign in to comment.