Skip to content

Commit ed42e92

Browse files
committed
fix(test): add comments
1 parent 669b1f2 commit ed42e92

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

framework/src/test/java/org/tron/common/runtime/vm/BandWidthRuntimeTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ public void testSuccessNoBandd() {
157157
boolean originalDebug = CommonParameter.getInstance().isDebug();
158158
try {
159159
byte[] contractAddress = createContract();
160+
// Enable debug mode to bypass CPU time limit check in Program.checkCPUTimeLimit().
161+
// Without this, the heavy contract execution (setCoin) may exceed the time threshold
162+
// on slow machines and cause the test to fail non-deterministically.
160163
CommonParameter.getInstance().setDebug(true);
161164
TriggerSmartContract triggerContract = TvmTestUtils.createTriggerContract(contractAddress,
162165
"setCoin(uint256)", "50", false,

0 commit comments

Comments
 (0)