SYNCHRONOUS_DML in a test context - Integration test #454
-
If I'd like to do an integration test with SYNCHRONOUS_DML it fails (where it succeeds with EVENT_BUS).
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @JeroenSfdc I think you are doing everything correctly - I think that the issue is unfortunately something that I'll need to address within Nebula Logger's code. Right now, during a test context, Nebula Logger does not load any custom metadata records, including I am currently finishing up the next managed package release (
|
Beta Was this translation helpful? Give feedback.
Hey @JeroenSfdc I think you are doing everything correctly - I think that the issue is unfortunately something that I'll need to address within Nebula Logger's code. Right now, during a test context, Nebula Logger does not load any custom metadata records, including
LoggerSObjectHandler__mdt
records, which are a critical part of howSYNCHRONOUS_DML
is implemented. This has an unfortunate side effect of making it impossible for you to properly test theSYNCHRONOUS_DML
save method in the managed package.I am currently finishing up the next managed package release (
v4.10
) - I'm already behind schedule to get it released, so I don't think I'll be able to address this issue right now. However…