Skip to content

Commit

Permalink
test_fips.rb: Fix the OpenSSL.fips_mode affecting other tests.
Browse files Browse the repository at this point in the history
Run the test with `assert_separately` for the `false` value of the
`OpenSSL.fips_mode` not to affect other tests.
  • Loading branch information
junaruga committed Sep 20, 2023
1 parent 0b83eed commit 2fe3438
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/openssl/test_fips.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ def test_fips_mode_get_is_false_on_fips_mode_disabled
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
Expand Down

0 comments on commit 2fe3438

Please sign in to comment.