Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/Reactor.Tests/Core/QueryCacheThreadingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ public class QueryCacheThreadingTests
// tests finish in milliseconds; on shared CI runners (virtualized cores,
// bursty scheduling) flushing the Task scheduler after cancellation can
// stretch unpredictably. A generous ceiling kills flakes without weakening
// the deadlock guarantee.
private static readonly TimeSpan DrainTimeout = TimeSpan.FromSeconds(60);
// the deadlock guarantee. Bumped 60s→120s after a 1-in-1000 stress hit on
// Concurrent_Subscribe_Unsubscribe_Converges_To_Zero where the workload is
// pure lock-bound bookkeeping (no eviction is reachable in 60s given the
// 5-minute default CacheTime) — i.e. the timeout was scheduler-induced.
private static readonly TimeSpan DrainTimeout = TimeSpan.FromSeconds(120);

// ════════════════════════════════════════════════════════════════
// Concurrent Set + TryGet — no torn reads
Expand Down
1 change: 1 addition & 0 deletions tests/Reactor.Tests/JumpListItemTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public void TryResolve_Throws_On_Null_Map()
/// Spec 036 §11.3 — JumpList static state. We don't exercise the live shell
/// here (that's a selftest fixture); only the public state surface.
/// </summary>
[Collection("JumpListGlobals")]
public class JumpListStateTests
Comment on lines 182 to 186
{
[Fact]
Expand Down
6 changes: 5 additions & 1 deletion tests/Reactor.Tests/JumpListUpdateValidationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ namespace Microsoft.UI.Reactor.Tests;
/// caller-error gates that run synchronously before any platform call.
///
/// Each test uses <c>JumpList.ResetForTests()</c> to isolate the static
/// state.
/// state. The <c>JumpListGlobals</c> collection serializes these tests
/// with <see cref="JumpListStateTests"/> so the shared static
/// <c>JumpList.AppUserModelId</c> is not clobbered by a concurrent
/// <c>ResetForTests()</c> in another class.
/// </summary>
[Collection("JumpListGlobals")]
public class JumpListUpdateValidationTests : IDisposable
{
Comment on lines +18 to 22
public JumpListUpdateValidationTests() => JumpList.ResetForTests();
Expand Down
Loading