Skip to content

Commit 2fe3438

Browse files
committed
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.
1 parent 0b83eed commit 2fe3438

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/openssl/test_fips.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ def test_fips_mode_get_is_false_on_fips_mode_disabled
2828
end
2929

3030
def test_fips_mode_is_reentrant
31-
OpenSSL.fips_mode = false
32-
OpenSSL.fips_mode = false
31+
assert_separately(["-ropenssl"], <<~"end;")
32+
OpenSSL.fips_mode = false
33+
OpenSSL.fips_mode = false
34+
end;
3335
end
3436

3537
def test_fips_mode_get_with_fips_mode_set

0 commit comments

Comments
 (0)