Skip to content

Commit

Permalink
force classes to load before spinning threads
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jan 28, 2013
1 parent be23243 commit d84a75d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallelism_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def run_workers(with_advisory_lock)
before :each do
@iterations = 5
@workers = 10
# Force the AR classes to load for 3.0 and 3.1:
Tag.new
TagAudit.new
Label.new
end

it "parallel threads create multiple duplicate rows" do
Expand Down

0 comments on commit d84a75d

Please sign in to comment.