Sha256: 673c55910dc76adce1b490ff4f874558aa64841b935d9a69bb90ba8b5679bbab
Contents?: true
Size: 560 Bytes
Versions: 2
Compression:
Stored size: 560 Bytes
Contents
require 'cases/helper' module ActiveRecord::ConnectionAdapters class MysqlAdapter class StatementPoolTest < ActiveRecord::TestCase if Process.respond_to?(:fork) def test_cache_is_per_pid cache = StatementPool.new nil, 10 cache['foo'] = 'bar' assert_equal 'bar', cache['foo'] pid = fork { lookup = cache['foo']; exit!(!lookup) } Process.waitpid pid assert $?.success?, 'process should exit successfully' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activejob-lock-0.0.2 | rails/activerecord/test/cases/adapters/mysql/statement_pool_test.rb |
activejob-lock-0.0.1 | rails/activerecord/test/cases/adapters/mysql/statement_pool_test.rb |