Skip to content

Commit 86edc63

Browse files
committed
[test] disable the explicit SM checks - its going really crazy on CI
1 parent 7d13c15 commit 86edc63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/ruby/test_security.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def parse_hash_value(value)
129129

130130
##
131131

132-
Security.install_security_manager
132+
Security.install_security_manager if ENV['INSTALL_SECURITY_MANAGER'].eql?('true')
133133

134134
##
135135

@@ -167,4 +167,6 @@ def parse_hash_value(value)
167167

168168
Security.permissive!
169169

170-
puts "using permissive! security with installed manager: #{java.lang.System.getSecurityManager}"
170+
if manager = java.lang.System.getSecurityManager
171+
puts "using permissive! security with installed manager: #{manager}"
172+
end

0 commit comments

Comments
 (0)