Skip to content

Enable caller tracking for async LV tests using the sandbox #195

@LostKobrakai

Description

@LostKobrakai

LiveViews async apis use Tasks under the hood, which already implement caller tracking, but as documented for Phoenix.Ecto.SQL.Sandbox and async LV tests :"$callers" is not set on the LV itself, so allowance can't be automatically inherited.

I'm not sure if Phoenix.Ecto.SQL.Sandbox should get updated or just its docs.

Context: https://elixirforum.com/t/running-a-liveview-test-with-async-true/68765/24

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions