[ https://issues.apache.org/jira/browse/DISPATCH-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17537539#comment-17537539 ]
ASF GitHub Bot commented on DISPATCH-1689: ------------------------------------------ jiridanek closed pull request #1564: DISPATCH-1689 Wait for startup log line to ensure router is fully started in tests URL: https://github.com/apache/qpid-dispatch/pull/1564 > [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-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org