Repository navigation
Closed as duplicate
Labels
CI/pipeline 🔬good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting 🏗
Description
Describe the bug
This is one of the tests that is failing intermittently in our CI and causing issues:
Failed Test_RichSuggestBox_DeleteTokens (@Token1,#Token2) [108 ms]
Error Message:
Assert.AreEqual failed. Expected:<2>. Actual:<1>. Unexpected token count after adding.
Stack Trace:
at RichSuggestBoxExperiment.Tests.Test_RichSuggestBox.<>c__DisplayClass2_0.<<Test_RichSuggestBox_DeleteTokens>b__0>d.MoveNext() in D:\a\Windows\Windows\components\RichSuggestBox\tests\Test_RichSuggestBox.cs:line 143
--- End of stack trace from previous location ---
at CommunityToolkit.WinUI.DispatcherQueueExtensions.<>c__DisplayClass3_0.<<EnqueueAsync>b__1>d.MoveNext() in /_/components/Extensions/src/Dispatcher/DispatcherQueueExtensions.cs:line 180
--- End of stack trace from previous location ---
at RichSuggestBoxExperiment.Tests.Test_RichSuggestBox.Test_RichSuggestBox_DeleteTokens(String token1, String token2) in D:\a\Windows\Windows\components\RichSuggestBox\tests\Test_RichSuggestBox.cs:line 133
at Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.ThreadOperations.ExecuteWithAbortSafety(Action action)
It's unclear if this is some underlying issue with the platform, or some race condition with us not waiting long enough in the test. But it needs investigation so we can have a more stable CI setup.
FYI @Arlodotexe, think I had pointed this out elsewhere, but figured we should have a tracking issue.
I think I've only seen this in the WinUI 3 stacks, not sure about if I've seen in UWP (but we'd have to go look at other failure logs to be sure).
Steps to reproduce
Run CI
Expected behavior
Not fail in CI
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 10 21H2 (Build 19044)
- Windows 10 22H2 (Build 19045)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Windows 10, version 2104 (Build 20348)
- Windows 11, version 22H2 (Build 22000)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.
Metadata
Metadata
Assignees
Labels
CI/pipeline 🔬good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtesting 🏗
Activity
Arlodotexe commentedon Mar 12, 2025
Appears to be a duplicate of #589