mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
test: give the fake pooler a readiness budget that survives a loaded CI worker
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
Some checks failed
LiteLLM Rust / rust-lint (push) Has been cancelled
LiteLLM Rust / rust-test (push) Has been cancelled
Terraform Modules / fmt, validate, test (aws) (push) Has been cancelled
Terraform Modules / fmt, validate, test (gcp) (push) Has been cancelled
Terraform Provider / gofmt, vet, build, test (push) Has been cancelled
Terraform Provider / Provider endpoints vs proxy OpenAPI schema (push) Has been cancelled
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
0199cbcc52
commit
da4052dcd7
1 changed files with 5 additions and 2 deletions
|
|
@ -411,7 +411,7 @@ class TestPgBouncerProcess:
|
|||
port=port,
|
||||
socket_path=unix_socket_path(tmp_path, port),
|
||||
restart_delay_seconds=0.1,
|
||||
ready_timeout_seconds=0.3,
|
||||
ready_timeout_seconds=3.0,
|
||||
)
|
||||
assert pooler.start() is None
|
||||
first_pid: Final = pooler.pid
|
||||
|
|
@ -421,7 +421,10 @@ class TestPgBouncerProcess:
|
|||
with caplog.at_level(logging.ERROR, logger=verbose_proxy_logger.name):
|
||||
os.kill(first_pid, signal.SIGKILL)
|
||||
assert _wait_until(lambda: _listening(wrong_port))
|
||||
assert _wait_until(lambda: any("did not start listening" in record.message for record in caplog.records))
|
||||
assert _wait_until(
|
||||
lambda: any("did not start listening" in record.message for record in caplog.records),
|
||||
timeout_seconds=10.0,
|
||||
)
|
||||
port_file.write_text(str(port))
|
||||
assert _wait_until(lambda: _listening(port))
|
||||
assert _wait_until(lambda: not _listening(wrong_port))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue