Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2013

Unit test failure in Ruby 1.9

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 1.10.0
    • Fix Version/s: None
    • Component/s: ruby
    • Labels:
      None

      Description

        1) Error:
      test_md5_fingerprint(TestFingerprints):
      JSON::GeneratorError: only generation of JSON objects or arrays allowed
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:143:in `md5_fingerprint'
          /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:26:in `test_md5_fingerprint'
      
        2) Error:
      test_sha256_fingerprint(TestFingerprints):
      JSON::GeneratorError: only generation of JSON objects or arrays allowed
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema.rb:149:in `sha256_fingerprint'
          /Users/busbey/projects/avro/lang/ruby/test/test_fingerprints.rb:35:in `test_sha256_fingerprint'
      
        3) Error:
      test_primitives(TestSchemaNormalization):
      JSON::GeneratorError: only generation of JSON objects or arrays allowed
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:224:in `generate'
          /Users/busbey/projects/avro/lang/ruby/.gem/gems/json_pure-2.0.3/lib/json/common.rb:394:in `dump'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:28:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/lib/avro/schema_normalization.rb:20:in `to_parsing_form'
          /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:28:in `block in test_primitives'
          /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `each'
          /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:23:in `test_primitives'
      
        4) Error:
      test_shared_dataset(TestSchemaNormalization):
      NameError: uninitialized constant CaseFinder::StringScanner
          /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:11:in `initialize'
          /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `new'
          /Users/busbey/projects/avro/lang/ruby/test/case_finder.rb:7:in `cases'
          /Users/busbey/projects/avro/lang/ruby/test/test_schema_normalization.rb:166:in `test_shared_dataset'
      
      52 tests, 799 assertions, 0 failures, 4 errors, 0 skips
      
      

      I'm using 1.9.3 installed via RVM.

      Busbey-MBA:ruby busbey$ rvm version
      rvm 1.29.1 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
      Busbey-MBA:ruby busbey$ rvm list
      
      rvm rubies
      
      => ruby-1.9.3-p551 [ x86_64 ]
       * ruby-2.2.1 [ x86_64 ]
      
      # => - current
      # =* - current && default
      #  * - default
      

        Attachments

        1. AVRO-2013-branch-1.8.v0.patch
          0.9 kB
          Sean Busbey
        2. AVRO-2013.0.patch
          0.9 kB
          Sean Busbey

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                busbey Sean Busbey
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: