Commit 305eb48
committed
Catch
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: 802617162Error when dumping thread states in IdlingPolicy.1 parent d257dfc commit 305eb48
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments