Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-355

Fix broken Ruby Rspec tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.4
    • proton-0.5
    • proton-c
    • None

    Description

      Currently there are 9 broken tests:

      Failures:

      1) A data object can hold an array
      Failure/Error: @data.put_array false, Data::INT
      NameError:
      uninitialized constant Qpid::Proton::Data::INT

      1. ./spec/qpid/proton/data_spec.rb:417:in `block (2 levels) in <module:Proton>'

      2) A data object can hold a described array
      Failure/Error: @data.put_array true, Data::STRING
      NameError:
      uninitialized constant Qpid::Proton::Data::STRING

      1. ./spec/qpid/proton/data_spec.rb:433:in `block (2 levels) in <module:Proton>'

      3) A messenger has an error number
      Failure/Error: expect {
      expected Qpid::Proton::ProtonError but nothing was raised

      1. ./spec/qpid/proton/messenger_spec.rb:72:in `block (2 levels) in <module:Proton>'

      4) A messenger has an error message
      Failure/Error: expect {
      expected Qpid::Proton::ProtonError but nothing was raised

      1. ./spec/qpid/proton/messenger_spec.rb:83:in `block (2 levels) in <module:Proton>'

      5) A messenger raises an error when subscribing to an invalid address
      Failure/Error: expect {
      expected Qpid::Proton::ProtonError but nothing was raised

      1. ./spec/qpid/proton/messenger_spec.rb:109:in `block (2 levels) in <module:Proton>'

      6) A messenger once started does not return a tracker before sending messages
      Failure/Error: @messenger.outgoing_tracker.should be_nil
      expected: nil
      got: #<Qpid::Proton::Tracker:0x000000015c1588 @impl=0>

      1. ./spec/qpid/proton/messenger_spec.rb:234:in `block (3 levels) in <module:Proton>'

      7) A messenger once started and subscribed to an address has a nil incoming tracker when no messages are received
      Failure/Error: @messenger.incoming_tracker.should be_nil
      expected: nil
      got: #<Qpid::Proton::Tracker:0x00000001594290 @impl=0>

      1. ./spec/qpid/proton/messenger_spec.rb:353:in `block (4 levels) in <module:Proton>'

      8) A messenger once started and subscribed to an address with a an outgoing tracker raises an error when settling with a nil flag
      Failure/Error: @receiver.stop
      Qpid::Proton::TimeoutError:
      Qpid::Proton::TimeoutError

      1. ./lib/qpid_proton/exception_handling.rb:55:in `check_for_error'
      2. ./lib/qpid_proton/messenger.rb:115:in `stop'
      3. ./spec/qpid/proton/messenger_spec.rb:276:in `block (4 levels) in <module:Proton>'

      9) A messenger once started and subscribed to an address with messages sent raises an error when receiving with a negative max
      Failure/Error: expect {
      expected RangeError, got #<Qpid::Proton::TimeoutError: Qpid::Proton::TimeoutError> with backtrace:

      1. ./lib/qpid_proton/exception_handling.rb:55:in `check_for_error'
      2. ./lib/qpid_proton/messenger.rb:232:in `receive'
      3. ./spec/qpid/proton/messenger_spec.rb:428:in `block (6 levels) in <module:Proton>'
      4. ./spec/qpid/proton/messenger_spec.rb:427:in `block (5 levels) in <module:Proton>'
      5. ./spec/qpid/proton/messenger_spec.rb:427:in `block (5 levels) in <module:Proton>'

      Finished in 0.11794 seconds
      226 examples, 9 failures, 15 pending

      Attachments

        Activity

          People

            mcpierce Darryl Pierce
            mcpierce Darryl Pierce
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: