Skip to content

Commit 20dcd67

Browse files
committed
updating to bypass test if not async
1 parent c26671e commit 20dcd67

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/integration/async_tests/test_async_background_callbacks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
from multiprocessing import Lock
66
from tests.integration.async_tests.utils import setup_background_callback_app
77
import time
8+
from tests.utils import test_async
89

910
def test_001ab_arbitrary(dash_duo, manager):
11+
if not test_async():
12+
return
1013
with setup_background_callback_app(manager, "app_arbitrary_async") as app:
1114
dash_duo.start_server(app)
1215

@@ -37,6 +40,8 @@ def test_002ab_basic(dash_duo, manager):
3740
"""
3841
Make sure that we settle to the correct final value when handling rapid inputs
3942
"""
43+
if not test_async():
44+
return
4045
lock = Lock()
4146
with setup_background_callback_app(manager, "app1_async") as app:
4247
dash_duo.start_server(app)

0 commit comments

Comments
 (0)