Skip to content

Swift SDK tests hang when run via terminal / CI #200

@anahjz

Description

@anahjz

Hi
Thanks for maintaining the Swift SDK, really appreciate the work.

I’m encountering an issue where the Swift SDK test suite hangs when executed from the terminal or in CI/CD, even though the same tests run fine inside Xcode.

Problem

When running tests using terminal-based commands (CI-style execution), the test process starts and many tests run successfully, but near the end the execution hangs and never completes.

  • No failure or crash is reported
  • No more test output is printed
  • The process does not exit on its own
  • CI jobs eventually time out

How tests are run

Examples:
swift test
Behavior difference

Xcode UI: All tests finish
Terminal / CI: Test run hangs

Guess
It feels like one or more tests may leave unfinished async work, such as:
background queues

  • timers
  • run loops
  • unfulfilled expectations

Because terminal/CI runners wait for all work to complete, the test process never terminates.
Just wanted to report this since it blocks CI pipelines and automated test runs.

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions