Skip to content

[ci-scan] Test failure: System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListener [Content truncated due to length] #130278

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1494308
Build error leg or test failing: maccatalyst-x64 Release AllSubsets_NativeAOT - System.Net.HttpListener.Tests

Error Details

On the Apple NativeAOT library-test legs (maccatalyst / iossimulator AllSubsets_NativeAOT), HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException fails its Assert.Throws check. Writing to an already-closed connection does not raise on the Darwin/Apple socket stack, so the expected HttpListenerException is never thrown:

[FAIL] System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException(ignoreWriteExceptions: False)
Assert.Throws() Failure: No exception was thrown
Expected: typeof(System.Net.HttpListenerException)
   at System.Net.Tests.HttpResponseStreamTests.<Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException>d__20.MoveNext() in /_/src/libraries/System.Net.HttpListener/tests/HttpResponseStreamTests.cs:line 449

The test carries [ActiveIssue(".../issues/21590", TestPlatforms.OSX | TestPlatforms.FreeBSD)], but that skip does not include TestPlatforms.MacCatalyst, so it runs and fails on the maccatalyst NativeAOT leg. NativeAOT library tests on Apple mobile were newly enabled by #125437 (merged 2026-07-02); the failure first appears on build 1492684 (2026-07-03) and reproduces on follow-up build 1494829. The ...Asynchronously... sibling variant of the same behavioural difference is catalogued in the Apple-mobile NativeAOT tracker #126697. Sibling Apple-NativeAOT library-test failures from the same source build are tracked by #130253 and #130254.

First build it occurred: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1492684

Related: #126697

Error Message

{
  "ErrorMessage": [
    "[FAIL] System.Net.Tests.HttpResponseStreamTests.Write_ContentToClosedConnectionSynchronously_ThrowsHttpListenerException",
    "Expected: typeof(System.Net.HttpListenerException)"
  ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

🔒 Integrity filter blocked 31 items

The following items were blocked because they don't meet the GitHub integrity level.

  • #107364 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #107364 issue_read: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #114222 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #127541 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #112093 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #119449 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #130105 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #93686 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #76917 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #71338 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #83890 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #71472 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #78657 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #80356 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #10055 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • #56073 search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
  • ... and 15 more items

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by CI Outer-Loop Failure Scanner · ● 18.6M ·

Report

Build Repository Test Pull Request
1496784 dotnet/runtime System.Net.HttpListener.Tests.WorkItemExecution #130292

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 1 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions