From 0f419cfa4dedef32c268efbb2a0ff392bd4073c0 Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Mon, 8 Jan 2024 08:56:26 +0100 Subject: [PATCH] increase timout for unit tests Signed-off-by: Florian Bacher --- test/OpenFeature.Tests/OpenFeatureEventTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/OpenFeature.Tests/OpenFeatureEventTests.cs b/test/OpenFeature.Tests/OpenFeatureEventTests.cs index 6bd5b14a..ce626e1d 100644 --- a/test/OpenFeature.Tests/OpenFeatureEventTests.cs +++ b/test/OpenFeature.Tests/OpenFeatureEventTests.cs @@ -322,11 +322,11 @@ public async Task Client_Level_Event_Handlers_Should_Be_Removable() await Api.Instance.SetProvider(myClient.GetMetadata().Name, testProvider); // wait for the first event to be received - Thread.Sleep(1000); + Thread.Sleep(2000); myClient.RemoveHandler(ProviderEventTypes.ProviderReady, eventHandler); - var newTestProvider = new TestProvider(); - await Api.Instance.SetProvider(myClient.GetMetadata().Name, newTestProvider); + // send another event from the provider - this one should not be received + testProvider.SendEvent(ProviderEventTypes.ProviderReady); // wait a bit and make sure we only have received the first event, but nothing after removing the event handler Thread.Sleep(1000);