@@ -137,11 +137,9 @@ def test_wait_failed_with_timeout_override(self):
137
137
138
138
with patch (f"{ __name__ } .Something" , waitable_mock ):
139
139
something = Something ()
140
- self .run_async (something .method_1 , delay = 0.1 )
140
+ self .run_async (something .method_1 , delay = 0.5 )
141
141
with self .assertRaises (AssertionError ):
142
142
something .method_1 .wait_until_called (timeout = 0.05 )
143
- with self .assertRaises (AssertionError ):
144
- something .method_1 .wait_until_any_call (timeout = 0.05 )
145
143
146
144
def test_wait_success_called_before (self ):
147
145
waitable_mock = self ._make_mock ()
@@ -167,10 +165,10 @@ def test_wait_until_any_call_positional(self):
167
165
168
166
with patch (f"{ __name__ } .Something" , waitable_mock ):
169
167
something = Something ()
170
- self .run_async (something .method_1 , 1 , delay = 0.1 )
171
- self .run_async (something .method_1 , 2 , delay = 0.2 )
172
- self .run_async (something .method_1 , 3 , delay = 0.3 )
168
+ self .run_async (something .method_1 , 1 , delay = 0.2 )
173
169
self .assertNotIn (call (1 ), something .method_1 .mock_calls )
170
+ self .run_async (something .method_1 , 2 , delay = 0.5 )
171
+ self .run_async (something .method_1 , 3 , delay = 0.6 )
174
172
175
173
something .method_1 .wait_until_any_call (1 )
176
174
something .method_1 .assert_called_with (1 )
@@ -186,10 +184,10 @@ def test_wait_until_any_call_keywords(self):
186
184
187
185
with patch (f"{ __name__ } .Something" , waitable_mock ):
188
186
something = Something ()
189
- self .run_async (something .method_1 , a = 1 , delay = 0.1 )
190
- self .run_async (something .method_1 , b = 2 , delay = 0.2 )
191
- self .run_async (something .method_1 , c = 3 , delay = 0.3 )
187
+ self .run_async (something .method_1 , a = 1 , delay = 0.2 )
192
188
self .assertNotIn (call (a = 1 ), something .method_1 .mock_calls )
189
+ self .run_async (something .method_1 , b = 2 , delay = 0.5 )
190
+ self .run_async (something .method_1 , c = 3 , delay = 0.6 )
193
191
194
192
something .method_1 .wait_until_any_call (a = 1 )
195
193
something .method_1 .assert_called_with (a = 1 )
0 commit comments