Skip to content

Commit 3420cf8

Browse files
Merge branch 'dev' into claude-wt-InMemoryPersistence3
2 parents 717aad0 + eef6588 commit 3420cf8

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/core/Akka.Streams.Tests/Dsl/TickSourceSpec.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,10 @@ await this.AssertAllStagesStoppedAsync(async () =>
142142
var sub = await c.ExpectSubscriptionAsync();
143143

144144
sub.Request(2);
145-
await c.ExpectNoMsgAsync(TimeSpan.FromMilliseconds(600));
146-
await c.ExpectNextAsync("tick");
147-
await c.ExpectNoMsgAsync(TimeSpan.FromMilliseconds(200));
148-
await c.ExpectNextAsync("tick");
149-
145+
var ticks = await c.ExpectNextNAsync(2, TimeSpan.FromSeconds(3)).ToListAsync();
146+
ticks.Should().HaveCount(2);
147+
ticks.Should().OnlyContain(t => t == "tick");
148+
150149
cancelable.Cancel();
151150
await AwaitConditionAsync(() => Task.FromResult(cancelable.IsCancellationRequested));
152151

0 commit comments

Comments
 (0)