Skip to content

[localserver] fatalError: No more invocations to process - the async for loop should not return #592

@glbrntt

Description

@glbrntt

Expected behavior

testLambdaRuntimerunOnce should always run to completion without crashing.

Actual behavior

Sometimes testLambdaRuntimerunOnce hits a fatalError in the local server here.

I suspect this happens as a result of cancellation where the pool returns nil.

Steps to reproduce

I couldn't reproduce this consistently, it happened when running testLambdaRuntimerunOnce though.

If possible, minimal yet complete reproducer code (or URL to code)

No response

What version of this project (swift-aws-lambda-runtime) are you using?

dee6352

Swift version

6.2

Amazon Linux 2 docker image version

No response

Metadata

Metadata

Assignees

Labels

area/testingImprovements to tests.kind/bugFeature doesn't work as expected.🔨 semver/patchNo public API change.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions