Skip to content

Conversation

@squah-confluent
Copy link
Contributor

@squah-confluent squah-confluent commented Nov 2, 2025

The previous implementation was buggy and always threw an
IllegalStateException when there were scheduled tasks because it called
Iterator.remove() without a preceding call to Iterator.next().

The previous implementation was buggy and always threw an
IllegalStateException because it called Iterator.remove() without a
preceding call to Iterator.next().
@github-actions github-actions bot added triage PRs from the community group-coordinator small Small PRs labels Nov 2, 2025
public void testTaskCancelledBeforeBeingExecuted() {
@ParameterizedTest
@ValueSource(booleans = {false, true})
public void testTaskCancelledBeforeBeingExecuted(boolean useCancelAll) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the parameterisation weird here. Have you considered having a proper unit test for the method itself?

@github-actions github-actions bot removed the triage PRs from the community label Nov 4, 2025
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.

2 participants