Skip to content

Commit

Permalink
Add missing server_run
Browse files Browse the repository at this point in the history
  • Loading branch information
nateberkopec committed Feb 28, 2020
1 parent 87fc7d7 commit f809e6b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_puma_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ def teardown
@server.stop(true)
end

def server_run(app: @app, early_hints: false)
@server.app = app
@server.add_tcp_listener @host, @port
@server.early_hints = true if early_hints
@server.run
end

def header(sock)
header = []
while true
Expand Down

0 comments on commit f809e6b

Please sign in to comment.