@@ -65,7 +65,7 @@ access(all) fun testTransactionScheduleEventAndData() {
6565 var scheduledEvent = scheduledEvents[0 ] as! FlowTransactionScheduler.Scheduled
6666 Test.assertEqual (highPriority, scheduledEvent.priority! )
6767 Test.assertEqual (timeInFuture, scheduledEvent.timestamp! )
68- Test.assert (scheduledEvent.executionEffort == 1000 , message : " incorrect execution effort" )
68+ Test.assert (scheduledEvent.executionEffort == basicEffort , message : " incorrect execution effort" )
6969 Test.assertEqual (feeAmount, scheduledEvent.fees! )
7070 Test.assertEqual (serviceAccount.address, scheduledEvent.transactionHandlerOwner! )
7171 Test.assertEqual (" A.0000000000000001.TestFlowScheduledTransactionHandler.Handler" , scheduledEvent.transactionHandlerTypeIdentifier! )
@@ -194,16 +194,15 @@ access(all) fun testScheduledTransactionExecution() {
194194 Test.moveTime (by : Fix64 (1 .0 ))
195195 }
196196
197- // Simulate FVM process - should process since timestamp is in the past
197+ // process transaction scheduled in the testTransactionScheduleEventAndData
198198 processTransactions ()
199199
200200 // Check for PendingExecution event after processing
201201 // Should have one high
202202
203203 let pendingExecutionEventsAfterTime = Test.eventsOfType (Type< FlowTransactionScheduler.PendingExecution> ())
204204 Test.assertEqual (1 , pendingExecutionEventsAfterTime.length)
205-
206- var i = 0
205+ 23
207206 var firstEvent : Bool = false
208207 for event in pendingExecutionEventsAfterTime {
209208 let pendingExecutionEvent = event as ! FlowTransactionScheduler.PendingExecution
@@ -236,8 +235,6 @@ access(all) fun testScheduledTransactionExecution() {
236235 firstEvent = true
237236 }
238237 }
239-
240- i = i + 1
241238 }
242239
243240 // Check that the transactions were executed
0 commit comments