Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/core/Akka.Docs.Tests/Streams/HubsDocTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public HubsDocTests(ITestOutputHelper output)
}

[Fact]
public void Hubs_must_demonstrate_creating_a_dynamic_merge()
public async Task Hubs_must_demonstrate_creating_a_dynamic_merge()
{
void WriteLine(string s) => TestActor.Tell(s);

Expand All @@ -53,7 +53,10 @@ public void Hubs_must_demonstrate_creating_a_dynamic_merge()
Source.Single("Hub!").RunWith(toConsumer, Materializer);
#endregion

ExpectMsgAllOf(new []{ "Hello!", "Hub!"});
// MergeHub queues producers that start before the hub stage does, so both
// elements always arrive; only the timing varies. The 3s default was too
// tight for three materializations on a stalled 2-vCPU CI agent.
await ExpectMsgAllOfAsync(TimeSpan.FromSeconds(10), new[] { "Hello!", "Hub!" }).ToListAsync();
}

[Fact]
Expand Down
Loading