Skip to content

Commit 76fead2

Browse files
committed
pkcs7: update test case test_graceful_parsing_failure
Using test_pkcs7.rb as an example invalid input is not reliable because we may happen to include a valid PKCS#7 PEM block in a heredoc.
1 parent 5f1d395 commit 76fead2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/openssl/test_pkcs7.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def test_empty_signed_data_ruby_bug_19974
204204
end
205205

206206
def test_graceful_parsing_failure #[ruby-core:43250]
207-
contents = File.read(__FILE__)
207+
contents = "not a valid PKCS #7 PEM block"
208208
assert_raise(ArgumentError) { OpenSSL::PKCS7.new(contents) }
209209
end
210210

0 commit comments

Comments
 (0)