Skip to content

Commit

Permalink
harden ReliableDeliveryShardingSpecs (#6747)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored May 9, 2023
1 parent c0e4512 commit 7dbfc94
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public async Task ReliableDelivery_with_Sharding_must_illustrate_Sharding_usage(
$"producer-{_idCount}");

// expecting 3 end messages, one for each entity: "entity-0", "entity-1", "entity-2"
consumerEndProbe.ReceiveN(3, TimeSpan.FromSeconds(15));
await consumerEndProbe.ReceiveNAsync(3, TimeSpan.FromSeconds(25)).ToListAsync();
}

[Fact]
Expand Down Expand Up @@ -128,7 +128,7 @@ public async Task ReliableDelivery_with_Sharding_must_illustrate_Sharding_usage_
$"p2-{_idCount}");

// expecting 3 end messages, one for each entity: "entity-0", "entity-1", "entity-2"
var endMessages = consumerEndProbe.ReceiveN(3, TimeSpan.FromSeconds(15));
var endMessages = await consumerEndProbe.ReceiveNAsync(3, TimeSpan.FromSeconds(25)).ToListAsync();

var producerIds = endMessages.Cast<Collected>().SelectMany(c => c.ProducerIds).ToList();
producerIds
Expand Down

0 comments on commit 7dbfc94

Please sign in to comment.