You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/06/02 17:03:00 UTC

[jira] [Commented] (DISPATCH-1689) [test] test framework can't handle qdrouter that is torn down too soon

    [ https://issues.apache.org/jira/browse/DISPATCH-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545566#comment-17545566 ] 

ASF subversion and git services commented on DISPATCH-1689:
-----------------------------------------------------------

Commit e253b1daad0a1c020a0ad8c213db5525ab72707a in qpid-dispatch's branch refs/heads/dependabot/github_actions/actions/checkout-3.0.2 from Jiri Daněk
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=e253b1da ]

DISPATCH-1689 Wait for startup log line to ensure router is fully started in tests (#140)


> [test] test framework can't handle qdrouter that is torn down too soon
> ----------------------------------------------------------------------
>
>                 Key: DISPATCH-1689
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1689
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 1.12.0
>            Reporter: Charles E. Rolke
>            Assignee: Jiri Daněk
>            Priority: Major
>             Fix For: 1.20.0
>
>
> Demonstration steps:
>  # simple router is created with cls.tester.qdrouterd(..., wait=False)
>  # skip cls.router.wait_ready()
>  # run a test that executes quickly and creates no connection to the router
> Then default teardown will show something like:
> {noformat}
> 24: ERROR
> 24: 
> 24: ======================================================================
> 24: ERROR: tearDownClass (system_tests_policy.PolicyWarnings)
> 24: ----------------------------------------------------------------------
> 24: Traceback (most recent call last):
> 24:   File "/home/chug/git/qpid-dispatch/tests/system_test.py", line 723, in tearDownClass
> 24:     cls.tester.teardown()
> 24:   File "/home/chug/git/qpid-dispatch/tests/system_test.py", line 669, in teardown
> 24:     raise RuntimeError("Errors during teardown: \n\n%s" % "\n\n".join([str(e) for e in errors]))
> 24: RuntimeError: Errors during teardown: 
> 24: 
> 24: Process 65135 error: exit code -15, expected 0
> 24: qdrouterd -c PolicyWarnings.conf -I /home/chug/git/qpid-dispatch/python
> 24: /home/chug/git/qpid-dispatch/build/tests/system_test.dir/system_tests_policy/PolicyWarnings/setUpClass/PolicyWarnings-1.cmd
> 24: >>>>
> 24: <<<<
> {noformat}
>  The router did not crash and the test did nothing to cause a teardown issue. Conversely the test can do nothing to fix the issue outside of a sleep.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org