Skip to content

Tests: the compose open-helper pin uses Assert.Single, clearing xUnit2013 (#5052) - #5054

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/xunit2013-compose-pin
Oct 3, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
fix/xunit2013-compose-pin

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Follow-up to #5052.

Why

#5052's source pin counted one match with Assert.Equal(1, ....Count). The xUnit2013 analyzer warns on that, so dev built Darling.Tests with 1 warning again; it had 0 after #5043.

What changes

ComposeClientTimeoutAttributionTests.cs:243 now reads Assert.Single(Regex.Matches(...)). The assertion is the same: exactly one { FailedAfterTimeout = true } in the open helper.

Test plan

  • dotnet build Darling/Darling.Tests --no-incremental: 0 warnings, 0 errors.
  • ComposeClientTimeoutAttributionTests: Total 19, Failed 0.

CHANGELOG

SECTION: None
ENTRY: None: a test assertion form, no user-visible effect

@erikdarlingdata
erikdarlingdata marked this pull request as ready for review October 3, 2026 22:54
@erikdarlingdata
erikdarlingdata merged commit b26e963 into dev Oct 3, 2026
19 of 20 checks passed
@erikdarlingdata
erikdarlingdata deleted the fix/xunit2013-compose-pin branch October 3, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant