Skip to content

fix (partial) mixed_dml test failures #938#965

Open
manuerwin wants to merge 1 commit intojongpie:mainfrom
manuerwin:bugfix/partial_fix_938_mixed_dml_test_failures
Open

fix (partial) mixed_dml test failures #938#965
manuerwin wants to merge 1 commit intojongpie:mainfrom
manuerwin:bugfix/partial_fix_938_mixed_dml_test_failures

Conversation

@manuerwin
Copy link

Partial fix for #938 as I've been experiencing MIXED_DML test failures in LogHandler_Tests in both it_should_set_owner_when_default_configured_with_user_id and it_should_set_owner_when_default_configured_with_username.

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 two tests 🤞

@manuerwin manuerwin requested a review from jongpie as a code owner March 19, 2026 00:25
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.

1 participant