From 0f806de39a8a7aec1e82a44c454c45a08c20714d Mon Sep 17 00:00:00 2001 From: Bernhard Straub Date: Thu, 20 Jun 2024 10:01:22 +0200 Subject: [PATCH] Fix a time critical test Result depends on task management --- RxBlazorLightCoreTests/StateTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxBlazorLightCoreTests/StateTests.cs b/RxBlazorLightCoreTests/StateTests.cs index aadf811..db4d381 100644 --- a/RxBlazorLightCoreTests/StateTests.cs +++ b/RxBlazorLightCoreTests/StateTests.cs @@ -806,7 +806,7 @@ public async Task TestStateObserverComplex() await Task.Delay(5); } - Assert.Equal(7, stateChangeCount); + Assert.InRange(stateChangeCount, 6, 7); Assert.Equal(20, fixture.IntState.Value); }