Skip to content

[Feature Request] Allow querying the port/address via TestWorkflowEnvironmentΒ #1787

@hanikesn

Description

@hanikesn

Is your feature request related to a problem? Please describe.

We're currently spawning a global TestWorkflowEnvironment for our integration tests. As we can't pass the connection/nativeConnection directly onwards we have to pass the address to the application itself. Unfortunately it's not possible to query the actual address string including the port, when spawning the TestWorkflowEnvironment via createLocal when using a random free port.

Describe the solution you'd like

Allow querying the port/address so it's possible to use a random free port when creating clients manually.

Workaround

const env = await TestWorkflowEnvironment.createLocal()
const address = native.ephemeralServerGetTarget(env["server"])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions