(start_cli)
| 356 | |
| 357 | @skip_on_windows |
| 358 | def test_cli_worker_fork_timeout_invalid_str(start_cli): |
| 359 | proc = start_cli( |
| 360 | "tests.test_cli:broker", |
| 361 | extra_args=[ |
| 362 | "--processes", |
| 363 | "1", |
| 364 | "--threads", |
| 365 | "1", |
| 366 | "--worker-fork-timeout", |
| 367 | "tests", |
| 368 | ], |
| 369 | stdout=PIPE, |
| 370 | stderr=STDOUT, |
| 371 | ) |
| 372 | proc.wait(60) |
| 373 | |
| 374 | # The process return code should be 2 |
| 375 | assert proc.returncode == 2 |
| 376 | |
| 377 | # And the output should contain an error |
| 378 | assert b"worker-fork-timeout be a number." in proc.stdout.read() |
| 379 | |
| 380 | |
| 381 | @skip_on_windows |