Skip to content

Failing Unit Test: LogFlowExecutionErrorEventHandler_Tests. it_logs_when_enabled #817

Open
@kacrouse

Description

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

4.15.1

New Bug Summary

Error message: System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.LogFlowExecutionErrorEventHandler_Tests.it_logs_when_enabled: line 29, column 1

Failing line:

System.runAs(new Schema.User(Id = [SELECT Id FROM User WHERE Alias = 'autoproc'].Id)) {

It's looking for the automated process user which does not exist in my org. Not sure I've ever seen an org without this user, so this is interesting. I do have several Platform Integration Users, and one of them is the context user for firing platform events—which I think used to be automated process? so maybe SF has made some changes...

This isn't blocking me from doing anything, just calling it out as it's something I've noticed for a bit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Plugin: Async Failure AdditionsItems related to the plugin Async Failure AdditionsType: BugSomething isn't workingtestsRelates to Apex or LWC jest tests

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions