From c8f59f84afd4f59e2ad38bbd0c099c55aad27f82 Mon Sep 17 00:00:00 2001 From: Julien Lebosquain Date: Tue, 13 Jan 2026 14:55:18 +0100 Subject: [PATCH] Fix xUnit warnings in AnimationIterationTests (#20459) --- .../Animation/AnimationIterationTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Avalonia.Base.UnitTests/Animation/AnimationIterationTests.cs b/tests/Avalonia.Base.UnitTests/Animation/AnimationIterationTests.cs index 81f1b758a7..4a3d67d0c7 100644 --- a/tests/Avalonia.Base.UnitTests/Animation/AnimationIterationTests.cs +++ b/tests/Avalonia.Base.UnitTests/Animation/AnimationIterationTests.cs @@ -640,7 +640,7 @@ namespace Avalonia.Base.UnitTests.Animation var root = new TestRoot(border); root.LayoutManager.ExecuteInitialLayoutPass(); - var animationTask = animation.RunAsync(border, clock); + var animationTask = animation.RunAsync(border, clock, TestContext.Current.CancellationToken); // Pulse the clock - this should not throw even though // the first keyframe's value is null (falls back to neutral value) @@ -694,7 +694,7 @@ namespace Avalonia.Base.UnitTests.Animation root.LayoutManager.ExecuteInitialLayoutPass(); // Start animation - the first keyframe value will be null due to unresolved binding - var task = animation.RunAsync(control, clock); + var task = animation.RunAsync(control, clock, TestContext.Current.CancellationToken); // The fix ensures this doesn't throw NullReferenceException // Animation falls back to neutral value and continues