Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-2065

AttributeError: 'DeleteConnectionWithReceiver' object has no attribute 'n_sent'

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.15.0
    • 1.19.0
    • Tests
    • None

    Description

      https://github.com/apache/qpid-dispatch/pull/1052/checks?check_run_id=2394806073#step:9:2728

      The stacktrace below is caused by a copy-paste error. The test object does not have the attributes that are accessed.

      Furthermore, the test output does not provide any useful diagnostics in its output to investigate why the timeout happened.

      34: ======================================================================
      34: ERROR: test_21_delete_connection_with_receiver (system_tests_two_routers.TwoRouterTest)
      34: ----------------------------------------------------------------------
      34: Traceback (most recent call last):
      34:   File "/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/system_tests_two_routers.py", line 377, in test_21_delete_connection_with_receiver
      34:     test.run()
      34:   File "/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/system_tests_two_routers.py", line 496, in run
      34:     Container(self).run()
      34:   File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/proton/_reactor.py", line 182, in run
      34:     while self.process():
      34:   File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/proton/_reactor.py", line 240, in process
      34:     event.dispatch(handler)
      34:   File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/proton/_events.py", line 162, in dispatch
      34:     _dispatch(handler, type.method, self)
      34:   File "/opt/hostedtoolcache/Python/3.7.10/x64/lib/python3.7/site-packages/proton/_events.py", line 123, in _dispatch
      34:     m(*args)
      34:   File "/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/system_test.py", line 1327, in on_timer_task
      34:     self.parent.timeout()
      34:   File "/home/runner/work/qpid-dispatch/qpid-dispatch/qpid-dispatch/tests/system_tests_two_routers.py", line 432, in timeout
      34:     self.error = "Timeout Expired: sent=%d, received=%d" % (self.n_sent, self.n_received)
      34: AttributeError: 'DeleteConnectionWithReceiver' object has no attribute 'n_sent'
      34: 
      34: ----------------------------------------------------------------------
      34: Ran 32 tests in 124.158s
      34: 
      34: FAILED (errors=1)
      34: 
      18/37 Test #34: system_tests_two_routers ..........................***Failed  124.31 sec
      

      Attachments

        Issue Links

          Activity

            People

              gmurthy Ganesh Murthy
              jdanek Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: