Skip to content

Commit

Permalink
Decrease thread count
Browse files Browse the repository at this point in the history
  • Loading branch information
zyc9012 committed Sep 4, 2024
1 parent 91190f2 commit 5f41f30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/multi_thread_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe "Multi threading" do
it 'should be thread-safe' do
10000.times.map do
1000.times.map do
Thread.new do
random_str = (0...32).map { (65 + rand(58)).chr }.join
doc = Nokolexbor::HTML('<div><a class="a">' + random_str + '</a></div>')
Expand Down

0 comments on commit 5f41f30

Please sign in to comment.