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

12 commits

Author SHA1 Message Date
Nate Berkopec
7cc3b65b93
Fix failing test 2020-02-27 10:32:48 -06:00
Nate Berkopec
d91c112fee
Merge branch 'removes-connected-port' of https://github.com/drews256/puma into drews256-removes-connected-port 2020-02-27 10:27:00 -06:00
Yoann Lecuyer
a391634a34
Instrument requests count (#2106)
* Instrument requests count

* Fix existing tests

* Add history

* add new test
2020-02-11 09:47:39 -06:00
Andrew Stuntz
c4f6ac08ee Removes connected_port, implements connected_ports
This work starts the effort of removing connected_port from the specs.

I have moved the code around a bit to get all connected_ports, the tests seem
to pass in the appropriate areas.

I want to verify this path before attempting to remove all UniquePort calls in
the tests.
2019-11-19 10:51:18 -08:00
Daniel Colson
fcb99b91cc Close connection in web server tests (#2072)
[skip changelog]

Closes #2049

Before this commit, `test_trickle_attack` and
`test_file_streamed_request` were each taking an extra 20 seconds to run.

Without the `Connection: close` header, the [connection was kept
alive][keep alive] until it timed out after the
[`PERSISTENT_TIMEOUT`][PERSISTENT_TIMEOUT] duration of 20 seconds.

[keep alive]: 3835ac74de/lib/puma/server.rb (L706-L708)
[PERSISTENT_TIMEOUT]: 3835ac74de/lib/puma/const.rb (L109-L111)
2019-11-12 07:56:45 +08:00
Nate Berkopec
8e2c461de4
I really need a rubocop precommit hook 2019-09-11 14:34:24 +00:00
Nate Berkopec
696083162c
Parallelize a few more tests
Thanks to @MSP-Greg
2019-09-11 14:11:46 +00:00
MSP-Greg
770e76cada test_web_server.rb - fix intermittent errors (#1898)
Intermittent errors may be related to OS buffering, etc.  Seems to fix issue.
2019-08-09 11:19:40 -07:00
Nate Berkopec
9f4edf4c66
Cleanup tests, parallelize a few (#1850)
+ Some tests getting frozen_string_literal
+ Remove unneccessary bundler setup
+ Fewer/tighter sleeps
2019-07-27 09:47:19 -07:00
Michael Grosser
9d93a0f62f make test_helper no longer be loaded as a test (#1283)
running `rake` loads all files starting with `test_` which is not supposed to also load the helper,
since the helper should be loaded by each test and is not a test itself.
2017-05-12 12:16:55 -07:00
Michael Grosser
d25ef26465 warn when bundler fails and avoid having to use -I to run tests (#1270) 2017-04-11 14:48:11 -07:00
Francesco Rodriguez
b638dd1948 Use Minitest instead of Test::Unit (#1152)
* Bump minitest version.

* Add basic test helper file.

* Use minitest for web server tests.

* Use Minitest for unix socket tests.

* Use Minitest for ThreadPool tests.

* Use Minitest for TCP-Rack tests

* Use Minitest for TCPLogger tests.

* Add missing helper to test helpers.

* Use Minitest for Rack server tests.

* Use Minitest for Rack handler tests.

* Use Minitest for Puma::Server tests.

* Use Minitest for Puma::Server with SSL tests.

* Use Minitest for persisten connections tests.

* Require puma in test_helper file.

* Use minitest for Puma::NullIO tests.

* Remove unnecessary requires on test files.

* Use Minitest for MiniSSL tests.

* Use Minitest for IOBuffer tests.

* Require bundler/setup in Rakefile.

* Use Minitest for HttpParser tests.

* Use Minitest for Puma::Configuration tests.

* Use Minitest for Puma::CLI tests.

* Bump Minitest version for Ruby 2.1 Gemfile.

* Use Minitest for integration tests.

* Use Minitest for Puma::App::Status tests.

* Remove test-unit from Gemfiles.

* Add timeout helper to Minitest::Test.

* Use Minitest for Puma::Binder tests.

* Remove testhelp file.

* Add missing require to Puma::Binder tests.

* Prefer require instead of require_relative.
2016-11-22 08:05:49 -07:00
Renamed from test/test_ws.rb (Browse further)