Skip to content

Commit

Permalink
Adjust unit tests wait times
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-m committed May 1, 2024
1 parent 887c946 commit de77467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/M.EventBrokerSlim.Tests/HandlerRegistrationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public async Task Handlers_RegisteredAfter_AddEventBroker_AreExecuted()

await eventBroker.Publish(testEvent);

var completed = await eventsRecorder.WaitForExpected(timeout: TimeSpan.FromMilliseconds(50));
var completed = await eventsRecorder.WaitForExpected(timeout: TimeSpan.FromMilliseconds(100));

// Assert
Assert.True(completed);
Expand Down Expand Up @@ -181,7 +181,7 @@ public async Task Handlers_RegisteredBeforeAndAfter_AddEventBroker_AreExecuted()

await eventBroker.Publish(testEvent);

var completed = await eventsRecorder.WaitForExpected(timeout: TimeSpan.FromMilliseconds(50));
var completed = await eventsRecorder.WaitForExpected(timeout: TimeSpan.FromMilliseconds(100));

// Assert
Assert.True(completed);
Expand Down

0 comments on commit de77467

Please sign in to comment.