mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
refactor(config): SIGNAL_CACHE_CONFIG → DISTRIBUTED_COORDINATION_CONFIG (#38395)
This commit is contained in:
committed by
GitHub
parent
832fee3ff8
commit
19f949276c
@@ -89,9 +89,9 @@ def test_wait_for_completion_timeout(app_context, login_as, get_user) -> None:
|
||||
assert task.user_id == admin.id
|
||||
|
||||
try:
|
||||
# Force polling mode by mocking signal_cache as None
|
||||
# Force polling mode by mocking distributed_coordination as None
|
||||
with patch("superset.tasks.manager.cache_manager") as mock_cache_manager:
|
||||
mock_cache_manager.signal_cache = None
|
||||
mock_cache_manager.distributed_coordination = None
|
||||
with pytest.raises(TimeoutError):
|
||||
TaskManager.wait_for_completion(
|
||||
task.uuid,
|
||||
|
||||
Reference in New Issue
Block a user