Skip to content

Crash when a call to confirmation(expectedCount: 1...) { ... } fails #805

@briancroom

Description

@briancroom

Description

I'm seeing a crash during issue stringification when running a test which fails due to a particular range-based confirmation failing.

Expected behavior

Expected an ordinary test failure, not a crash.

Actual behavior

A crash is occurring inside Issue.Kind.description.getter, specifically, at Issue.swift:203 in my checkout.

Steps to reproduce

Run the following test:

@Test func confirmedTooFewTimes() async {
  await confirmation(expectedCount: 1...) { (thingHappened) async in }
}

swift-testing version/commit hash

759ce02

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

Labels

bug🪲 Something isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions