diff --git a/qase-python-commons/changelog.md b/qase-python-commons/changelog.md index 5715a751..b41173d4 100644 --- a/qase-python-commons/changelog.md +++ b/qase-python-commons/changelog.md @@ -1,3 +1,9 @@ +# qase-python-commons@3.5.2 + +## What's new + +- Fixed an issue where the test run wasn't being completed before the results were uploaded. + # qase-python-commons@3.5.1 ## What's new diff --git a/qase-python-commons/pyproject.toml b/qase-python-commons/pyproject.toml index 316fff82..fb409ded 100644 --- a/qase-python-commons/pyproject.toml +++ b/qase-python-commons/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "qase-python-commons" -version = "3.5.1" +version = "3.5.2" description = "A library for Qase TestOps and Qase Report" readme = "README.md" authors = [{name = "Qase Team", email = "support@qase.io"}] diff --git a/qase-python-commons/src/qase/commons/reporters/testops.py b/qase-python-commons/src/qase/commons/reporters/testops.py index 6cf3c013..c5e1de85 100644 --- a/qase-python-commons/src/qase/commons/reporters/testops.py +++ b/qase-python-commons/src/qase/commons/reporters/testops.py @@ -117,9 +117,11 @@ def start_run(self) -> str: def complete_run(self) -> None: if len(self.results) > 0: self._send_results() + + while self.count_running_threads > 0: + pass + if self.complete_after_run: - while self.count_running_threads > 0: - pass self.logger.log_debug("Completing run") self.client.complete_run(self.project_code, self.run_id) self.logger.log_debug("Run completed")