1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Remove unused code in app status test (#2020)

[changelog skip]

We needed `backlog` and `running` when we introduced the stats endpoint
in [c5aad50e][]. We changed the endpoint to use `@cli.stats` instead in
[c48b804d][], so these values are no longer needed.

[c5aad50e]: c5aad50eb4
[c48b804d]: c48b804d8f
This commit is contained in:
Daniel Colson 2019-10-10 05:07:31 -04:00 committed by Nate Berkopec
parent dd781669d7
commit 7fc5af6b12

View file

@ -11,12 +11,9 @@ class TestAppStatus < Minitest::Test
class FakeServer class FakeServer
def initialize def initialize
@status = :running @status = :running
@backlog = 0
@running = 0
end end
attr_reader :status attr_reader :status
attr_accessor :backlog, :running
def stop def stop
@status = :stop @status = :stop
@ -81,8 +78,6 @@ class TestAppStatus < Minitest::Test
end end
def test_stats def test_stats
@server.backlog = 1
@server.running = 9
status, _ , app = lint('/stats') status, _ , app = lint('/stats')
assert_equal 200, status assert_equal 200, status