Skip to content

test: cover cooldown boundary#13

Open
anhtnt90dev wants to merge 1 commit into
tylrcc:mainfrom
anhtnt90dev:test-cooldown-boundary-3
Open

test: cover cooldown boundary#13
anhtnt90dev wants to merge 1 commit into
tylrcc:mainfrom
anhtnt90dev:test-cooldown-boundary-3

Conversation

@anhtnt90dev

Copy link
Copy Markdown

Fixes #3

Summary

  • Add a consensus test for the exact cooldown_sec boundary
  • Document the current boundary behavior: repeats are suppressed only while elapsed time is strictly less than cooldown_sec
  • Use integer timestamps in the boundary case to avoid floating-point noise around the exact limit

Test plan

  • uv run --with pytest python -m pytest 6_Server/test_consensus.py -q
  • uv run --with pytest python -m pytest -q
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit test: cooldown boundary at exactly cooldown_sec

1 participant