Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bad test

  • Loading branch information...
commit 6a90d64889f60d69315bfd89bd285e36e3ac11ab 1 parent 6b72885
@evanphx evanphx authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/puma/thread_pool.rb
  2. +2 −2 test/test_thread_pool.rb
View
2  lib/puma/thread_pool.rb
@@ -37,7 +37,7 @@ def initialize(min, max, &blk)
end
end
- attr_reader :spawned
+ attr_reader :spawned, :trim_requested
# How many objects have yet to be processed by the pool?
#
View
4 test/test_thread_pool.rb
@@ -113,11 +113,11 @@ def test_trim_is_ignored_if_no_waiting_threads
pool.trim
pool.trim
+ assert_equal 0, pool.trim_requested
+
finish = true
pause
-
- assert_equal 2, pool.spawned
end
def test_autotrim
Please sign in to comment.
Something went wrong with that request. Please try again.