Skip to content

Stabilize the JUnit 4 API#8857

Merged
swankjesse merged 1 commit into
masterfrom
jwilson.0614.junit4
Jun 16, 2025
Merged

Stabilize the JUnit 4 API#8857
swankjesse merged 1 commit into
masterfrom
jwilson.0614.junit4

Conversation

@swankjesse

Copy link
Copy Markdown
Collaborator

No description provided.

}
}

@Throws(IOException::class)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Throwing IOException here just isn’t useful!

for (queue in taskRunner.activeQueues()) {
if (!queue.idleLatch().await(5, TimeUnit.SECONDS)) {
throw IOException("Gave up waiting for queue to shut down")
throw AssertionError("Gave up waiting for queue to shut down")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

If this occurs in practice . . . the system is unhealthy. I think crashing hard like this is okay.

@swankjesse
swankjesse force-pushed the jwilson.0614.junit4 branch from 7a1dae9 to 01decd2 Compare June 16, 2025 15:07
@swankjesse
swankjesse merged commit 33b093a into master Jun 16, 2025
39 of 42 checks passed
@swankjesse
swankjesse deleted the jwilson.0614.junit4 branch June 16, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants