From d8d583b2f99a0ced559babc9917c21d5969ef37a Mon Sep 17 00:00:00 2001 From: Andres Pineda Date: Thu, 5 Sep 2024 16:24:31 -0400 Subject: [PATCH] chore: workaround for flaky test --- .../Operators/Given_StateForEach.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Uno.Extensions.Reactive.Tests/Operators/Given_StateForEach.cs b/src/Uno.Extensions.Reactive.Tests/Operators/Given_StateForEach.cs index 78abc0b2df..8eca06ce53 100644 --- a/src/Uno.Extensions.Reactive.Tests/Operators/Given_StateForEach.cs +++ b/src/Uno.Extensions.Reactive.Tests/Operators/Given_StateForEach.cs @@ -177,6 +177,9 @@ await state.ForEach(async (i, ct) => await state.SetAsync(42, CT); await state.SetAsync(3, CT); + //Test fails sometime because of time needed to process the exception + await Task.Delay(100); + result.Should().BeEquivalentTo(new[] { 2, 3 }); }