From 91e2dc55dcb4052cc50471a6114ebed484c05dd6 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 4 Jan 2024 23:17:23 +0000 Subject: [PATCH] Disable JSON extensions tests for JRuby native. --- ruby/tests/basic_proto2.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ruby/tests/basic_proto2.rb b/ruby/tests/basic_proto2.rb index b32b1f5a25..3864756fa7 100755 --- a/ruby/tests/basic_proto2.rb +++ b/ruby/tests/basic_proto2.rb @@ -264,6 +264,7 @@ module BasicTestProto2 end def test_extension_json + omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google::Protobuf::IMPLEMENTATION message = TestExtensions.decode_json '{"[basic_test_proto2.optional_int32_extension]": 123}' extension = Google::Protobuf::DescriptorPool.generated_pool.lookup 'basic_test_proto2.optional_int32_extension' assert_instance_of Google::Protobuf::FieldDescriptor, extension @@ -271,6 +272,7 @@ module BasicTestProto2 end def test_extension_json_separate_pool + omit "Java Protobuf JsonFormat does not handle Proto2 extensions" if defined? JRUBY_VERSION and :NATIVE == Google::Protobuf::IMPLEMENTATION pool = Google::Protobuf::DescriptorPool.new # This serialized descriptor is a subset of basic_test_proto2.proto: