Files
buzz/crates
npub1qyvc0c5kl4gqv2fd97fsk46tu378sqgy35vc83rvgfwne90sel7s0ed67d 7db75a6075 test(relay): seed owner-limit loop from max_communities_per_owner()
fresh_host_at_owner_limit_returns_limit_reached_conflict looped over the
MAX_COMMUNITIES_PER_OWNER constant while provision_community enforces
max_communities_per_owner(), which reads BUZZ_MAX_COMMUNITIES_PER_OWNER
with the constant only as fallback. Latent today (nothing wires the env),
but the moment an operator sets it the test provisions the wrong count
and the CONFLICT assertion inverts. Same defect class as the two limit
tests fixed in the previous commit: literal-vs-const there, const-vs-env
here. Found by Sami.

Verified RED/GREEN with BUZZ_MAX_COMMUNITIES_PER_OWNER=3: before, the
loop runs 5 while the code enforces 3 (409 at iteration 4); after, the
test passes at env=3, env=7, and default.

Co-authored-by: Tyler <109685178+tlongwell-block@users.noreply.github.com>
Signed-off-by: Tyler <109685178+tlongwell-block@users.noreply.github.com>
2026-08-01 14:31:06 -04:00
..
2026-07-27 14:18:24 -04:00