This is an automated email from the ASF dual-hosted git repository.
dpgaspar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 7a95f8f fix: flaky test on reports (#14544)
7a95f8f is described below
commit 7a95f8f8399579673d23c91c57fb637292324cfe
Author: Daniel Vaz Gaspar <[email protected]>
AuthorDate: Mon May 10 13:27:12 2021 +0100
fix: flaky test on reports (#14544)
---
tests/reports/commands_tests.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/reports/commands_tests.py b/tests/reports/commands_tests.py
index d1e57d2..e274f9c 100644
--- a/tests/reports/commands_tests.py
+++ b/tests/reports/commands_tests.py
@@ -806,9 +806,9 @@ def
test_report_schedule_working_timeout(create_report_slack_chart_working):
logs = db.session.query(ReportExecutionLog).all()
# Two logs, first is created by fixture
assert len(logs) == 2
- assert logs[1].error_message == ReportScheduleWorkingTimeoutError.message
- assert logs[1].state == ReportState.ERROR
-
+ assert ReportScheduleWorkingTimeoutError.message in [
+ log.error_message for log in logs
+ ]
assert create_report_slack_chart_working.last_state == ReportState.ERROR