Skip to content

Commit 6b3b40e

Browse files
committed
Fix missing metric mock
1 parent fdf6b7d commit 6b3b40e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

engine/execution/computation/computer/computer_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,16 @@ func testScheduledCallbackWithError(t *testing.T, chain flow.Chain, callbackEven
15291529
Return(nil).
15301530
Times(1)
15311531

1532+
// expect callback execution metrics if there are callbacks
1533+
if len(callbackEvents) > 0 {
1534+
exemetrics.On("ExecutionCallbacksExecuted",
1535+
mock.Anything,
1536+
mock.Anything,
1537+
mock.Anything).
1538+
Return(nil).
1539+
Times(1)
1540+
}
1541+
15321542
bservice := requesterunit.MockBlobService(blockstore.NewBlockstore(dssync.MutexWrap(datastore.NewMapDatastore())))
15331543
trackerStorage := mocktracker.NewMockStorage()
15341544

0 commit comments

Comments
 (0)