(start_cli)
| 332 | |
| 333 | @skip_on_windows |
| 334 | def test_cli_worker_fork_timeout_invalid_string(start_cli): |
| 335 | proc = start_cli( |
| 336 | "tests.test_cli:broker", |
| 337 | extra_args=[ |
| 338 | "--processes", |
| 339 | "1", |
| 340 | "--threads", |
| 341 | "1", |
| 342 | "--worker-fork-timeout", |
| 343 | "tests", |
| 344 | ], |
| 345 | stdout=PIPE, |
| 346 | stderr=STDOUT, |
| 347 | ) |
| 348 | proc.wait(60) |
| 349 | |
| 350 | # The process return code should be 2 |
| 351 | assert proc.returncode == 2 |
| 352 | |
| 353 | # And the output should contain an error |
| 354 | assert b"worker-fork-timeout be a number." in proc.stdout.read() |
| 355 | |
| 356 | |
| 357 | @skip_on_windows |