Skip to content

Commit 7c8746e

Browse files
halibobo1205claude
andcommitted
fix(test): catch Throwable instead of Exception in concurrent registration test
TronError extends Error, not Exception, so use Throwable to ensure worker thread failures are properly captured. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 18b5e61 commit 7c8746e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/src/test/java/org/tron/core/utils/TransactionRegisterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void testConcurrentAccessThreadSafe() throws InterruptedException {
5656
threads[i] = new Thread(() -> {
5757
try {
5858
TransactionRegister.registerActuator();
59-
} catch (Exception e) {
59+
} catch (Throwable e) {
6060
testPassed.set(false);
6161
}
6262
});

0 commit comments

Comments
 (0)