Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
jongpie committed Oct 16, 2024
1 parent 1654796 commit d006ab4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private class LogBatchApexErrorEventHandler_Tests implements Database.Batchable<
} catch (System.Exception ex) {
// via https://salesforce.stackexchange.com/questions/263419/testing-batchapexerrorevent-trigger
}
// at this point, we're still two async-levels deep into Platform Event-land; we need to call "deliver()" twice
// At this point, we're still two async-levels deep into Platform Event-land; we need to call "deliver()" twice
System.Test.getEventBus().deliver(); // fires the platform event for Database.RaisesPlatformEvents
System.Test.getEventBus().deliver(); // fires the logger's platform event

Expand Down

0 comments on commit d006ab4

Please sign in to comment.