We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 717aad0 + eef6588 commit 3420cf8Copy full SHA for 3420cf8
src/core/Akka.Streams.Tests/Dsl/TickSourceSpec.cs
@@ -142,11 +142,10 @@ await this.AssertAllStagesStoppedAsync(async () =>
142
var sub = await c.ExpectSubscriptionAsync();
143
144
sub.Request(2);
145
- await c.ExpectNoMsgAsync(TimeSpan.FromMilliseconds(600));
146
- await c.ExpectNextAsync("tick");
147
- await c.ExpectNoMsgAsync(TimeSpan.FromMilliseconds(200));
148
149
-
+ var ticks = await c.ExpectNextNAsync(2, TimeSpan.FromSeconds(3)).ToListAsync();
+ ticks.Should().HaveCount(2);
+ ticks.Should().OnlyContain(t => t == "tick");
+
150
cancelable.Cancel();
151
await AwaitConditionAsync(() => Task.FromResult(cancelable.IsCancellationRequested));
152
0 commit comments