This is an automated email from the ASF dual-hosted git repository. michaelsmolina 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 2b88225ee1 fix: Flaky test_explore_json_async test (#26059) 2b88225ee1 is described below commit 2b88225ee113062ad1c108e28a8b41a7a04a0a1a Author: Michael S. Molina <70410625+michael-s-mol...@users.noreply.github.com> AuthorDate: Wed Nov 22 09:11:09 2023 -0300 fix: Flaky test_explore_json_async test (#26059) Co-authored-by: John Bodley <4567245+john-bod...@users.noreply.github.com> --- tests/integration_tests/core_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/integration_tests/core_tests.py b/tests/integration_tests/core_tests.py index 3157ddd649..f83d1b01ce 100644 --- a/tests/integration_tests/core_tests.py +++ b/tests/integration_tests/core_tests.py @@ -713,7 +713,8 @@ class TestCore(SupersetTestCase): data = json.loads(rv.data.decode("utf-8")) keys = list(data.keys()) - self.assertEqual(rv.status_code, 202) + # If chart is cached, it will return 200, otherwise 202 + self.assertTrue(rv.status_code in {200, 202}) self.assertCountEqual( keys, ["channel_id", "job_id", "user_id", "status", "errors", "result_url"] )