CoreCLR test failure: `Java.InteropTests.JavaObjectTest.Dispose_Finalized`
- Dominant language
- C#
- Stars
- 2.1k
- Forks
- 579
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 257
Description
### Android framework version
net10.0-android (Preview)
### Affected platform version
.NET 10
### Description
After merging #10354, a couple test runs are successful, but then one failed:
* https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=12073441&view=ms.vss-test-web.build-test-results-tab&runId=136520953&resultId=100449&paneView=debug
```
Mono.Android.NET_Tests, Java.InteropTests.JavaObjectTest.Dispose_Finalized / Release
System.AggregateException : AggregateException_ctor_DefaultMessage ( Expected: True
But was: False
)
----> NUnit.Framework.AssertionException : Expected: True
But was: False
```
Test source:
* https://github.com/dotnet/java-interop/blob/f361b9945f3a94e22f299e2b705852f4d28ec845/tests/Java.Interop-Tests/Java.Interop/JavaObjectTest.cs#L106-L124
So, I suspect the test is flaky and fails some percentage of the time.
We should check out if this is a bug, or if the test can be improved.
### Steps to Reproduce
Run `tests\Mono.Android-Tests\Mono.Android-Tests\Mono.Android.NET-Tests.csproj` several times
### Did you find any workaround?
Run it again, it passes sometimes.
### Relevant log output
[logcat-ReleaseCoreCLR-Mono.Android.NET_Tests (12).txt](https://github.com/user-attachments/files/21517929/logcat-ReleaseCoreCLR-Mono.Android.NET_Tests.12.txt)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.