Skip to content

Commit

Permalink
added sleep to give time for event to be received
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Jan 3, 2024
1 parent d999ea3 commit 6c9e26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/OpenFeature.Tests/OpenFeatureEventTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public async Task API_Level_Event_Handlers_Should_Be_Registered()
var testProvider = new TestProvider();
await Api.Instance.SetProvider(testProvider);

Thread.Sleep(1000);
eventHandler.Received().Invoke(Arg.Is<ProviderEventPayload>(payload => payload.ProviderName == testProvider.GetMetadata().Name));
}

Expand Down

0 comments on commit 6c9e26a

Please sign in to comment.