Skip to content

Add unit tests for Continuation logic#13283

Open
JosiahWI wants to merge 2 commits into
apache:masterfrom
JosiahWI:feat/test-continuation
Open

Add unit tests for Continuation logic#13283
JosiahWI wants to merge 2 commits into
apache:masterfrom
JosiahWI:feat/test-continuation

Conversation

@JosiahWI

Copy link
Copy Markdown
Contributor

This change was generated by Claude Opus 4.7 from API contracts I have not yet opened PRs for. It does not touch existing files other than one CMakeLists.txt, so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics carefully for correctness. The default delay for the CountingContinuation wait is five seconds; I think a wait with a timeout is an acceptable way to test this, and five seconds should be plenty. If an event scheduled to run immediately doesn't call back the associated continuation within five seconds, that's probably unacceptable performance and worth failing the test for. :D

This change was generated by Claude Opus 4.7 from API contracts I have not yet
opened PRs for. It does not touch existing files other than one CMakeLists.txt,
so it is low-risk.

I reviewed each test case and they are good. I have not reviewed code semantics
carefully for correctness. The default delay for the `CountingContinuation` wait
is five seconds; I think a wait with a timeout is an acceptable way to test
this, and five seconds should be plenty. If an event scheduled to run immediately
doesn't call back the associated continuation within five seconds, that's
probably unacceptable performance and worth failing the test for. :D
@JosiahWI JosiahWI added this to the 11.0.0 milestone Jun 16, 2026
@JosiahWI JosiahWI self-assigned this Jun 16, 2026
Comment thread src/iocore/eventsystem/unit_tests/inkevent_test_fixtures.h Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant