Skip to content

Commit

Permalink
fix(consume): correctly forward setup error to hive server (#569)
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz authored May 23, 2024
1 parent fd7361a commit af638de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pytest_plugins/pytest_hive/pytest_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ def hive_test(request, test_suite: HiveTestSuite):
test_result_details = request.node.result_call.longreprtext
elif hasattr(request.node, "result_setup") and not request.node.result_setup.passed:
test_passed = False
test_result_details = "Test setup failed.\n" + request.node.result_call.longreprtext
test_result_details = "Test setup failed.\n" + request.node.result_setup.longreprtext
elif hasattr(request.node, "result_teardown") and not request.node.result_teardown.passed:
test_passed = False
test_result_details = (
"Test teardown failed.\n" + request.node.result_teardown.longreprtext
)
else:
test_passed = False
test_result_details = "Test failed for unknown reason (setup or call status unknown)."
Expand Down

0 comments on commit af638de

Please sign in to comment.