Commit 9851097
authored
Speed up test_socket_error_dupe and test_socket_error_default tests (#573)
Controller.start() starts a thread and waits for a ready event
for 5 seconds (aiosmtpd.controller.DEFAULT_READY_TIMEOUT).
If the thread hits an exception, the ready event never comes.
The `test_socket_error_dupe` and `test_socket_error_default` tests
exercise this scenario, and so each takes full 5 seconds to run.
I updated these two tests to pass in a shorter ready_timeout value
so they don't hang for as long. This saves ~9 seconds for
a full test suite run, per environment.1 parent c28e1c1 commit 9851097
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
225 | 228 | | |
226 | 229 | | |
227 | 230 | | |
228 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
| |||
0 commit comments