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
6729b532b9
Small test fixes - helpers/tmp_path.rb, helper.rb & test_redirect_io.rb
Currently, helpers/tmp_path.rb uses `#capture_exceptions` to run cleanup code, which is called several times for each test.
Adjusted code in it and test/helpers.rb to run once, after teardown.
This also allows asserts in teardown to work properly, see test_integration_pumactl.rb.

Also, `Tempfile.new` attaches finalizers to each object, which seemed to be intermittently bothering JRuby.
Changed to `Tempfile.create`

test_redirect_io.rb - small fix for setup and teardown.

helper.rb - changed `if ENV['CI']` conditional so that local and cloud CI both use TimeoutEveryTestCase..

Fix RuboCop in Update const.rb
2020-09-09 14:44:02 -05:00
Vyacheslav Alexeev
d635055ccb remove extra ensure 2020-09-06 15:23:20 +03:00
Vyacheslav Alexeev
c196c27423 override capture_exceptions 2020-09-01 22:20:13 +03:00
Vyacheslav Alexeev
f086e68bc8 Clean tmp_paths with mutation of the array 2020-07-13 08:45:54 +03:00
Vyacheslav Alexeev
a7455dff86 Add tmp_path manager module 2020-07-12 20:00:29 +03:00