Flaky test: resend-cooldown retry_after_s ceil-rounds to 61 at sub-second boundaries #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found (twice) during ecomm session 0032 while running the full backend suite:
tests/test_accounts_request_code.py::test_puc_02c_resend_is_rate_limitedintermittently fails withassert 61 <= 60—ResendCooldown.retry_after_sceil-rounds to 61 when the request lands at a sub-second wall-clock boundary. Pre-existing (reproduced at a commit before SLICE-5's changes); passes on rerun.Work: make the assertion or the cooldown math boundary-safe (e.g. assert
retry_after_s <= 61, or floor instead of ceil, or freeze time in the test).Closing as part of the pivot from a generic multi-tenant Shopify-alternative storefront to the commitment-commerce + cross-maker verified referral network direction (see
ecomm-content/rfcs/network_strategy.md; session 0036).Test flake in the current OTP resend-cooldown path; that code is being stripped/repointed in this pivot. Closing with the code it tests.
Nothing is lost — code stays in git history and the issue can be reopened if it resurfaces under the network architecture.