зеркало из https://github.com/github/ruby.git
[ruby/openssl] test_fips.rb: Fix the `OpenSSL.fips_mode` affecting other tests.
Run the test with `assert_separately` for the `false` value of the `OpenSSL.fips_mode` not to affect other tests. https://github.com/ruby/openssl/commit/2fe3438d8a
This commit is contained in:
Родитель
22a44735f0
Коммит
3123b2fa0e
|
@ -28,8 +28,10 @@ class OpenSSL::TestFIPS < OpenSSL::TestCase
|
|||
end
|
||||
|
||||
def test_fips_mode_is_reentrant
|
||||
OpenSSL.fips_mode = false
|
||||
OpenSSL.fips_mode = false
|
||||
assert_separately(["-ropenssl"], <<~"end;")
|
||||
OpenSSL.fips_mode = false
|
||||
OpenSSL.fips_mode = false
|
||||
end;
|
||||
end
|
||||
|
||||
def test_fips_mode_get_with_fips_mode_set
|
||||
|
|
Загрузка…
Ссылка в новой задаче