Skip to content

Should attempt to abort run on timeout #77

@pwrightcertinia

Description

@pwrightcertinia

If we hit the global timeout for a test run, it does not attempt to abort it. The client exits, leaving the test run going on the org.

This prevents subsequent executions of the runner from working properly as they encounter an ALREADY_IN_PROCESS error when trying to call runTestAsynchronous.

The fix needs to happen about here - we should be checking if result.error is defined with a TestErrorKind.Timeout. We could also force an abort attempt on every error type. If that fails, it will exit with the original error like this fix was never applied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions