mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
test(pgbouncer): stop the never-listens replacement test flaking under CI load (#40830)
This commit is contained in:
parent
c1aaaae4e3
commit
98f6c14a76
1 changed files with 2 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=2.0,
|
||||
)
|
||||
assert pooler.start() is None
|
||||
first_pid: Final = pooler.pid
|
||||
|
|
@ -421,8 +421,8 @@ 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))
|
||||
port_file.write_text(str(port))
|
||||
assert _wait_until(lambda: any("did not start listening" in record.message for record in caplog.records))
|
||||
assert _wait_until(lambda: _listening(port))
|
||||
assert _wait_until(lambda: not _listening(wrong_port))
|
||||
pooler.stop()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue