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

5 commits

Author SHA1 Message Date
MSP-Greg
e1e3134f88 test_redirect_io.rb - fix teardown for skipped tests
stops:
  warning: instance variable @old_err_file_path not initialized
  warning: instance variable @old_out_file_path not initialized
2020-05-14 23:27:28 -05:00
Benoit Daloze
0b737cce42
Run tests on TruffleRuby, all tests pass now (#2198)
* Support skip_on :truffleruby

* Remove unused variable declaration

* Properly skip tests which need fork

* Improve NO_FORK_MSG

* Keep the Tempfile instances alive in test_redirect_io.rb

* Otherwise they could GC in the middle of the test, and the files could
  then be deleted.

* Use a better way to find a free port

* Read directly from the socket in #read_and_drop

* There is no point to decode the bytes since we are closing the socket
  in Puma::MiniSSL::Socket#close.
* Also, calling #engine_read_all might cause further SSL errors, which
  could hide the first SSL error. This notably happens in
  TestPumaServerSSLClient#test_verify_fail_if_no_client_cert
  if the server is faster than the client. The error in that case is
  "System error: Success - 0 (Puma::MiniSSL::SSLError)" which is not
  actually an error, but there is also nothing to read further from SSL.

* TruffleRuby should pass the CI now, remove from allowed failures

* Use a timeout of 120 for all non-MRI implementations

* 60 doesn't seem enough in CI for TestThreadPool#test_trim on TruffleRuby.

* Fix check for cluster mode in integration tests

* Improve integration tests to fail more clearly if the pid file does not exist

* Make integration tests more robust

* Add skips for unreliable or racy tests

* Add ChangeLog entry

* No need to run RuboCop on non-MRI implementations

* This should speed up CI a bit for those jobs.
2020-03-25 06:13:31 +09:00
Nate Berkopec
910b4589be
Even more JRuby build fixes 2020-03-14 13:29:05 -06:00
Nate Berkopec
a90c73948a
Even more JRuby skips/fixes 2020-03-14 10:45:38 -06:00
Chris LaRose
761a093446
[changelog skip] Backfill tests for stdout/stderr redirection on SIGHUP (#2165)
* Backfill tests for stdout/stderr redirection on SIGHUP

* Make file path handling more clear in redirect io test
2020-03-10 17:22:58 -06:00