Skip to content

Commit 1666c94

Browse files
zhangchiqingjribbink
authored andcommitted
explain the resetScheduledTransaction
1 parent d881f22 commit 1666c94

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cadence/tests/forked_btc_daily_2025_test.cdc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ access(all)
109109
fun setup() {
110110
deployContractsForFork()
111111

112+
// it removes all the existing scheduled transactions, it is useful to speed up the tests,
113+
// because otherwise, the existing 41 scheduled transactions will be executed every time we
114+
// move the time forward, and each taking about 40ms, which make the tests very slow
115+
// after 365 days of simulation, the total delay would be 10mins.
116+
// resetting the transaction scheduler will not affect the test results, new scheduled
117+
// transaction can also be created by the tests.
112118
resetTransactionScheduler()
113119

114120
setPoolToPrice(

0 commit comments

Comments
 (0)