Skip to content

[tests] Clean up NSStreamTest peer listener

9ff2da9
Select commit
Loading
Failed to load commit list.
Merged

[tests] Make NSStreamTest.ConnectToPeer time out cleanly. #25091

[tests] Clean up NSStreamTest peer listener
9ff2da9
Select commit
Loading
Failed to load commit list.
Azure Pipelines / xamarin-macios-sim-pr-tests succeeded Apr 7, 2026 in 14m 45s

Build #20260406.9 had test failures

Details

Tests

  • Failed: 258 (0.11%, 258 new, 0 recurring)
  • Passed: 224,786 (95.57%)
  • Other: 10,155 (4.32%)
  • Total: 235,199

Annotations

Check failure on line 1 in MonoTests.System.Net.Http.MessageHandlerTest.GHIssue16339()

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

MonoTests.System.Net.Http.MessageHandlerTest.GHIssue16339()

  Exception
  Expected: null
  But was:  <System.Net.Http.HttpRequestException: The operation couldn’t be completed. File exists
 ---> Foundation.NSErrorException: Error Domain=NSPOSIXErrorDomain Code=17 "File exists" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <863F0D6A-94AE-4B32-8A09-5A6F34E88051>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=17, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <863F0D6A-94AE-4B32-8A09-5A6F34E88051>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns}
   --- End of inner exception stack trace ---
   at System.Net.Http.NSUrlSessionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /Users/builder/azdo/_work/5/s/macios/src/Foundation/NSUrlSessionHandler.cs:line 597
   at MonoTests.System.Net.Http.MessageHandlerTest.TestDelegateHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at MonoTests.System.Net.Http.MessageHandlerTest.<>c__DisplayClass24_0.<<GHIssue16339>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at TestRuntime.TryRunAsync(TimeSpan timeout, Task startTask, Task completionTask, UIImage imageToShow, Exception& exception)>
Raw output
   at MonoTests.System.Net.Http.MessageHandlerTest.GHIssue16339()

Check failure on line 1 in MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(OK,"mandel","12345678","mandel","12345678")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(OK,"mandel","12345678","mandel","12345678")

  Exception not null
  Expected: null
  But was:  <System.Net.Http.HttpRequestException: The operation couldn’t be completed. File exists
 ---> Foundation.NSErrorException: Error Domain=NSPOSIXErrorDomain Code=17 "File exists" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <AA73ACEA-918D-44E8-B9BF-36E46FC3538F>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=17, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <AA73ACEA-918D-44E8-B9BF-36E46FC3538F>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns}
   --- End of inner exception stack trace ---
   at System.Net.Http.NSUrlSessionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /Users/builder/azdo/_work/5/s/macios/src/Foundation/NSUrlSessionHandler.cs:line 597
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at MonoTests.System.Net.Http.MessageHandlerTest.<>c__DisplayClass21_0.<<GHIssue8342>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at TestRuntime.TryRunAsync(TimeSpan timeout, Task startTask, Task completionTask, UIImage imageToShow, Exception& exception)>
Raw output
   at MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(HttpStatusCode expectedStatus, String validUsername, String validPassword, String username, String password)

Check failure on line 1 in MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(Unauthorized,"mandel","12345678","","")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(Unauthorized,"mandel","12345678","","")

  Exception not null
  Expected: null
  But was:  <System.Net.Http.HttpRequestException: The operation couldn’t be completed. File exists
 ---> Foundation.NSErrorException: Error Domain=NSPOSIXErrorDomain Code=17 "File exists" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <E5C48CB9-567E-457B-9A79-B44263C1CA65>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=17, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <E5C48CB9-567E-457B-9A79-B44263C1CA65>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns}
   --- End of inner exception stack trace ---
   at System.Net.Http.NSUrlSessionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /Users/builder/azdo/_work/5/s/macios/src/Foundation/NSUrlSessionHandler.cs:line 597
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at MonoTests.System.Net.Http.MessageHandlerTest.<>c__DisplayClass21_0.<<GHIssue8342>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at TestRuntime.TryRunAsync(TimeSpan timeout, Task startTask, Task completionTask, UIImage imageToShow, Exception& exception)>
Raw output
   at MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(HttpStatusCode expectedStatus, String validUsername, String validPassword, String username, String password)

Check failure on line 1 in MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(Unauthorized,"mandel","12345678","mandel","87654321")

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(Unauthorized,"mandel","12345678","mandel","87654321")

  Exception not null
  Expected: null
  But was:  <System.Net.Http.HttpRequestException: The operation couldn’t be completed. File exists
 ---> Foundation.NSErrorException: Error Domain=NSPOSIXErrorDomain Code=17 "File exists" UserInfo={_NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <6C5AB433-F630-462D-9D5C-80B5F39A0447>.<1>, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=17, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <6C5AB433-F630-462D-9D5C-80B5F39A0447>.<1>"
), _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns}
   --- End of inner exception stack trace ---
   at System.Net.Http.NSUrlSessionHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /Users/builder/azdo/_work/5/s/macios/src/Foundation/NSUrlSessionHandler.cs:line 597
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at MonoTests.System.Net.Http.MessageHandlerTest.<>c__DisplayClass21_0.<<GHIssue8342>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at TestRuntime.TryRunAsync(TimeSpan timeout, Task startTask, Task completionTask, UIImage imageToShow, Exception& exception)>
Raw output
   at MonoTests.System.Net.Http.MessageHandlerTest.GHIssue8342(HttpStatusCode expectedStatus, String validUsername, String validPassword, String username, String password)