test(proxy): pass the new pass-through argument to the side-effect dispatcher

_apply_general_settings_side_effects grew a fourth argument when the reload
started comparing the resolved pass-through list, and this dispatch test calls
it positionally, so it failed with a TypeError.
This commit is contained in:
Yuneng Jiang 2026-09-18 02:17:52 -07:00
parent 460f336d8a
commit 2f3e4fa724
No known key found for this signature in database

View file

@ -3807,13 +3807,15 @@ async def test_ProxyConfig__update_general_settings_dispatches_every_side_effect
for name, handler in handlers:
monkeypatch.setattr(pc, name, handler)
await pc._apply_general_settings_side_effects({}, False, ())
await pc._apply_general_settings_side_effects({}, False, (), None)
for name, handler in handlers:
if name == "_apply_cache_size_setting":
handler.assert_awaited_once_with({}, cache_size_was_db=False)
elif name == "_apply_retention_settings":
handler.assert_awaited_once_with({}, previous_retention_values=())
elif name == "_apply_pass_through_settings":
handler.assert_awaited_once_with({}, previous_endpoints=None)
else:
handler.assert_awaited_once_with({})