You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/02/02 15:12:59 UTC

[GitHub] [superset] dpgaspar commented on a change in pull request #12885: test: speedup celery tests

dpgaspar commented on a change in pull request #12885:
URL: https://github.com/apache/superset/pull/12885#discussion_r568679420



##########
File path: tests/celery_tests.py
##########
@@ -274,9 +279,12 @@ def test_run_async_cta_query_with_lower_limit(setup_sqllab, ctas_method):
     result = run_sql(
         QUERY, cta=True, ctas_method=ctas_method, async_=True, tmp_table=tmp_table
     )
-    time.sleep(CELERY_SLEEP_TIME)
+    for _ in range(CELERY_SLEEP_TIME * 2):

Review comment:
       can you DRY it?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org