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

9 commits

Author SHA1 Message Date
Eileen M. Uchitelle
6714214d57 Require puma/events in test helper (#1418)
Moves the require for puma/events from the individual test files and
into the main test helper.

The reason for this was while I was debugging the `test_puma_server.rb`
tests I was getting an error for an uninitialized constant for
`Puma::Event`.

Moving the require from the individual files to the test help means the
`puma/events` will always be included instead of having to remember to
do that. It makes debugging individual tests locally easier.
2017-09-23 05:44:21 +09:00
Nate Berkopec
f4ce5fe9ee Run integration tests in default (#1394)
* Run integration tests in default

* Add retry in CI

* Convert integration test to ruby script for Windows

* Attempt to add finicky tests back

* Possible kinda janky solution

* Only run master branch on travis (syntax fix)

* Don't do integration tests on windows

Can't be bothered to make those tests crossplatform

* Remove join timeouts on read, let the main test timeout do it

* Assert once

* Sigh.
2017-08-16 16:07:15 -06:00
Nikolay Vashchenko
a31a62656d Appveyor CI (#1374)
* appveyour config

* proper platforms for windows

* disabling tests with ssl and interrupts

* excessive ssl setup

* fixed message

* adding info in readme regarding stopgap_13632

* formatting

* trailing spaces
2017-07-27 12:18:58 -06:00
Nikolay Vashchenko
91416134cb temporary workaround for https://bugs.ruby-lang.org/issues/13632 (#1345)
* temporary workaround for https://bugs.ruby-lang.org/issues/13632
Purging interrupt queue if IOError was caught.

* fixing only if mri

* optimization to avoid redundant checks in empty queue

* scoping fix to only affected versions

* serving ruby version from mkmf

* safe invoking for the workaround

* switching to preprocessor vars

* purging queue on runtime error

* rubocop fix

* covering workaround

* improving names

* styling

* rubocop fixes

* improved test reporting

* wording

* condition

* improving comment

* bugfix moved to separate gem: https://rubygems.org/gems/stopgap_13632

* using stopgap_13632 in gemfile to fix the builds

* requiring stopgap for tests
2017-07-19 12:22:36 -06:00
Michael Grosser
0886aef3d0 run tests with bundler since that is what our users run (#1317) 2017-06-09 05:20:03 -07:00
Michael Grosser
65a51b513a make restart via pumactl more robust (#1324) 2017-06-04 05:48:04 -07:00
Michael Grosser
290c22c9ad make tests fast by using readpartial and not blocking read (#1322) 2017-06-03 21:23:55 -07:00
Michael Grosser
febef44844 simplify test shellout and make sure no other version of puma is available so we know our tests work (#1311) 2017-06-02 13:24:01 -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
Renamed from test/test_helper.rb (Browse further)