Skip to content

fix mixed_dml test failures #938#965

Open
manuerwin wants to merge 4 commits intojongpie:mainfrom
manuerwin:bugfix/partial_fix_938_mixed_dml_test_failures
Open

fix mixed_dml test failures #938#965
manuerwin wants to merge 4 commits intojongpie:mainfrom
manuerwin:bugfix/partial_fix_938_mixed_dml_test_failures

Conversation

@manuerwin
Copy link
Copy Markdown

@manuerwin manuerwin commented Mar 19, 2026

Closes #938 as I've been experiencing MIXED_DML test failures in LogHandler_Tests and in LogEntryEventHandler_Tests.

History: package was originally installed for "all users" by mistake, and since then 4 tests have been failing, I worked out I needed to remove the three Nebula custom permissions and reinstall the package ("admins only") which solved 2 of the 4 errors, however still getting mixed_dml so seeking to solve by using system.runas() which allows for mixed dml in tests.

Hopefully that aligns with the intent of these tests 🤞

EDITED to include subsequent commits.

@manuerwin manuerwin requested a review from jongpie as a code owner March 19, 2026 00:25
@manuerwin manuerwin changed the title fix (partial) mixed_dml test failures #938 fix mixed_dml test failures #938 Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MIXED_DML_OPERATION Errors in tests that create users in some orgs

1 participant