File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ def function_dev(_: str) -> int:
84
84
85
85
class TestFunctionAllowlist (unittest .TestCase ):
86
86
def test_function_routing (self ):
87
+ print (
88
+ "Waiting for 30 seconds for Server to notice that any previously existing Executors exited."
89
+ )
90
+ time .sleep (30 )
91
+
87
92
graph_name = test_graph_name (self )
88
93
version = str (time .time ())
89
94
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ def success_func(sleep_secs: float) -> str:
30
30
31
31
class TestServerTaskDistribution (unittest .TestCase ):
32
32
def test_server_distributes_invocations_fairly_between_two_executors (self ):
33
+ print (
34
+ "Waiting for 30 seconds for Server to notice that any previously existing Executors exited."
35
+ )
36
+ time .sleep (30 )
37
+
33
38
graph_name = test_graph_name (self )
34
39
version = str (time .time ())
35
40
@@ -81,6 +86,10 @@ def test_server_distributes_invocations_fairly_between_two_executors(self):
81
86
self .assertLess (invocations_count , 125 )
82
87
83
88
def test_server_redistributes_invocations_when_new_executor_joins (self ):
89
+ print (
90
+ "Waiting for 30 seconds for Server to notice that any previously existing Executors exited."
91
+ )
92
+ time .sleep (30 )
84
93
graph_name = test_graph_name (self )
85
94
version = str (time .time ())
86
95
@@ -132,6 +141,10 @@ def test_server_redistributes_invocations_when_new_executor_joins(self):
132
141
self .assertLess (invocations_count , 150 )
133
142
134
143
def test_all_tasks_succeed_when_executor_exits (self ):
144
+ print (
145
+ "Waiting for 30 seconds for Server to notice that any previously existing Executors exited."
146
+ )
147
+ time .sleep (30 )
135
148
graph_name = test_graph_name (self )
136
149
version = str (time .time ())
137
150
You can’t perform that action at this time.
0 commit comments