dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.42k stars 985 forks source link

Microsoft.VisualBasic.MyServices.Tests.ClipboardProxyTests Tests randomly fail #12149

Closed paul1956 closed 1 month ago

paul1956 commented 2 months ago

Test

ClipboardProxyTests.Text is the one that fails most often.

Issue description

Clipboard Tests still randomly fail. The 8 tests in ClipboardProxyTests should be moved and combined with other Clipboard tests and this file should be deleted or the same fixes done in other Clipboard tests should be applied to these tests. Adding a delay as in other tests is one way to address this issue.

These tests are in C#, please do not assign this to me unless you just want the file deleted.

Tanya-Solyanik commented 1 month ago

ClipboardProxyTests are in a separate test assembly, we didn't enable parallelism between different assemblies, so there is no reason to move these tests. Delays could be added to these tests, they can share the test base class with the ClipboardTests from the S.W.F.Tests assembly if that base class is moved to utilities.

paul1956 commented 1 month ago

@Tanya-Solyanik if delay is added to test base class, I can update these tests if no one else wants to do it.

LeafShi1 commented 1 month ago

This issue has been fixed in PR #12284 , and the tests under ClipboardProxyTests.cs have not failed in 1 month. So Close this issue.