Skip to content

Conversation

copybara-service[bot]
Copy link

Catch Error when dumping thread states in IdlingPolicy.

Expand the catch block to include Error types in addition to RuntimeException when calling TestOutputEmitter.dumpThreadStates. This ensures that any issues during thread state dumping are suppressed and added to the AppNotIdleException, preserving the original exception as the primary cause.

java.lang.ExceptionInInitializerError can happen when static initializing TestOutputEmitter if more than one service is discovered.

Expand the catch block to include `Error` types in addition to `RuntimeException` when calling `TestOutputEmitter.dumpThreadStates`. This ensures that any issues during thread state dumping are suppressed and added to the `AppNotIdleException`, preserving the original exception as the primary cause.

`java.lang.ExceptionInInitializerError` can happen when static initializing `TestOutputEmitter` if more than one service is discovered.

PiperOrigin-RevId: 802644040
@copybara-service copybara-service bot merged commit 5d68f50 into main Sep 3, 2025
@copybara-service copybara-service bot deleted the piper_802617162 branch September 3, 2025 18:45
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.

1 participant