From 313fb30c815929d9e37b79964f0485935b3f03e1 Mon Sep 17 00:00:00 2001 From: Dion Date: Thu, 19 Dec 2024 11:11:35 +0100 Subject: [PATCH] #1833 add extra checks --- .../Services/UpdateBackgroundTaskQueueTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/starsky/starskytest/starsky.foundation.worker/Services/UpdateBackgroundTaskQueueTest.cs b/starsky/starskytest/starsky.foundation.worker/Services/UpdateBackgroundTaskQueueTest.cs index c7daa5e1d..6998f56f6 100644 --- a/starsky/starskytest/starsky.foundation.worker/Services/UpdateBackgroundTaskQueueTest.cs +++ b/starsky/starskytest/starsky.foundation.worker/Services/UpdateBackgroundTaskQueueTest.cs @@ -130,6 +130,11 @@ await backgroundQueue.QueueBackgroundWorkItemAsync(async _ => await Task.Delay(500); } + if ( !isExecuted ) + { + await Task.Delay(500); + } + Assert.IsTrue(isExecuted); await service.StopAsync(CancellationToken.None);