File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
tests/integration/callbacks Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -794,6 +794,7 @@ def on_click(_):
794
794
795
795
796
796
def test_cbsc019_callback_running (dash_duo ):
797
+ lock = Lock ()
797
798
app = Dash (__name__ )
798
799
799
800
app .layout = html .Div (
@@ -811,11 +812,14 @@ def test_cbsc019_callback_running(dash_duo):
811
812
prevent_initial_call = True ,
812
813
)
813
814
def on_click (_ ):
814
- time .sleep (1.0 )
815
+ with lock :
816
+ pass
815
817
return "done"
816
818
817
819
dash_duo .start_server (app )
818
- dash_duo .find_element ("#start" ).click ()
819
- dash_duo .wait_for_text_to_equal ("#running" , "on" )
820
+ with lock :
821
+ dash_duo .find_element ("#start" ).click ()
822
+ dash_duo .wait_for_text_to_equal ("#running" , "on" )
823
+
820
824
dash_duo .wait_for_text_to_equal ("#output" , "done" )
821
825
dash_duo .wait_for_text_to_equal ("#running" , "off" )
You can’t perform that action at this time.
0 commit comments