Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[64-74] SourceSpec #6612

Merged
merged 1 commit into from
Mar 27, 2023
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
18 changes: 9 additions & 9 deletions src/core/Akka.Streams.Tests/Dsl/SourceSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public void Failed_Source_must_emit_error_immediately()
}

[Fact]
public void Maybe_Source_must_complete_materialized_future_with_None_when_stream_cancels()
public async Task Maybe_Source_must_complete_materialized_future_with_None_when_stream_cancels()
{
this.AssertAllStagesStopped(async() =>
await this.AssertAllStagesStoppedAsync(async() =>
{
var neverSource = Source.Maybe<object>();
var pubSink = Sink.AsPublisher<object>(false);
Expand All @@ -117,9 +117,9 @@ public void Maybe_Source_must_complete_materialized_future_with_None_when_stream
}

[Fact]
public void Maybe_Source_must_allow_external_triggering_of_empty_completion()
public async Task Maybe_Source_must_allow_external_triggering_of_empty_completion()
{
this.AssertAllStagesStopped(async() =>
await this.AssertAllStagesStoppedAsync(async() =>
{
var neverSource = Source.Maybe<int>().Where(_ => false);
var counterSink = Sink.Aggregate<int, int>(0, (acc, _) => acc + 1);
Expand All @@ -137,9 +137,9 @@ public void Maybe_Source_must_allow_external_triggering_of_empty_completion()
}

[Fact]
public void Maybe_Source_must_allow_external_triggering_of_non_empty_completion()
public async Task Maybe_Source_must_allow_external_triggering_of_non_empty_completion()
{
this.AssertAllStagesStopped(async() =>
await this.AssertAllStagesStoppedAsync(async() =>
{
var neverSource = Source.Maybe<int>();
var counterSink = Sink.First<int>();
Expand All @@ -156,10 +156,9 @@ public void Maybe_Source_must_allow_external_triggering_of_non_empty_completion(
}

[Fact]
public void Maybe_Source_must_allow_external_triggering_of_OnError()
public async Task Maybe_Source_must_allow_external_triggering_of_OnError()
{
this.AssertAllStagesStopped(() =>
{
await this.AssertAllStagesStoppedAsync(() => {
var neverSource = Source.Maybe<int>();
var counterSink = Sink.First<int>();

Expand All @@ -172,6 +171,7 @@ public void Maybe_Source_must_allow_external_triggering_of_OnError()

counterFuture.Invoking(f => f.Wait(TimeSpan.FromSeconds(3))).Should().Throw<Exception>()
.WithMessage("Boom");
return Task.CompletedTask;
}, Materializer);
}

Expand Down