Skip to content

Commit

Permalink
increase timout for unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Jan 8, 2024
1 parent 2615ac2 commit 0f419cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/OpenFeature.Tests/OpenFeatureEventTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f419cf

Please sign in to comment.