Skip to content

Commit

Permalink
fix: Flaky test_explore_json_async test (apache#26059)
Browse files Browse the repository at this point in the history
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com>
  • Loading branch information
2 people authored and sfirke committed Mar 22, 2024
1 parent 3fac123 commit 25fb16f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration_tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ def test_explore_json_async(self):
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"]
)
Expand Down

0 comments on commit 25fb16f

Please sign in to comment.