Skip to content

Commit 957c22f

Browse files
committed
skip other test that changed behavior on 9.3
1 parent 1baba3b commit 957c22f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

lib/mongo/crypt/binding.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ module Crypt
2828
end
2929
end
3030

31+
# JRuby 9.3.2.0 replaces a LoadError with our custom message with a
32+
# generic NameError, when this load is attempted as part of autoloading
33+
# process. JRuby 9.2.20.0 propagates LoadError as expected.
3134
raise LoadError, "Cannot load Mongo::Crypt::Binding because there is no path " +
3235
"to libmongocrypt specified in the LIBMONGOCRYPT_PATH environment variable."
3336
end

spec/mongo/crypt/binding_unloaded_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
context 'when load fails' do
1010

11+
# JRuby 9.3.2.0 converts our custom LoadErrors to generic NameErrors
12+
# and trashes the exception messages.
13+
fails_on_jruby
14+
1115
it 'retries loading at the next reference' do
1216
lambda do
1317
Mongo::Crypt::Binding

0 commit comments

Comments
 (0)