Skip to content

Commit

Permalink
Use fake time provider in new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhickie committed Sep 5, 2024
1 parent d8e603f commit e55682f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public async Task When_an_outstanding_message_is_dispatched_async()
var context = new RequestContext();
await _dynamoDbOutbox.AddAsync(_message, context);

await Task.Delay(1000);
_fakeTimeProvider.Advance(TimeSpan.FromSeconds(1));

var args = new Dictionary<string, object> { { "Topic", "test_topic" } };

Expand All @@ -300,7 +300,7 @@ public async Task When_an_outstanding_message_is_dispatched()
var context = new RequestContext();
_dynamoDbOutbox.Add(_message, context);

await Task.Delay(1000);
_fakeTimeProvider.Advance(TimeSpan.FromSeconds(1));

var args = new Dictionary<string, object> { { "Topic", "test_topic" } };

Expand Down

0 comments on commit e55682f

Please sign in to comment.