Skip to content

Commit 052ac00

Browse files
Skip SSL error stub test on JRuby
JRuby's socket classes don't support Minitest's stub method aliasing, which causes NameError when trying to stub :gets on socket objects. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a968aa6 commit 052ac00

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/integration/test_network.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@
204204
end
205205

206206
it 'handles SSL error during read operations' do
207+
# JRuby's socket classes don't support Minitest's stub method aliasing
208+
skip 'Minitest stub incompatible with JRuby sockets' if RUBY_ENGINE == 'jruby'
209+
207210
with_nil_logger do
208211
memcached(p, 19_191) do |dc|
209212
# First set a value so we have something to get

0 commit comments

Comments
 (0)