@@ -92,9 +92,9 @@ public void Failed_Source_must_emit_error_immediately()
92
92
}
93
93
94
94
[ Fact ]
95
- public void Maybe_Source_must_complete_materialized_future_with_None_when_stream_cancels ( )
95
+ public async Task Maybe_Source_must_complete_materialized_future_with_None_when_stream_cancels ( )
96
96
{
97
- this . AssertAllStagesStopped ( async ( ) =>
97
+ await this . AssertAllStagesStoppedAsync ( async ( ) =>
98
98
{
99
99
var neverSource = Source . Maybe < object > ( ) ;
100
100
var pubSink = Sink . AsPublisher < object > ( false ) ;
@@ -117,9 +117,9 @@ public void Maybe_Source_must_complete_materialized_future_with_None_when_stream
117
117
}
118
118
119
119
[ Fact ]
120
- public void Maybe_Source_must_allow_external_triggering_of_empty_completion ( )
120
+ public async Task Maybe_Source_must_allow_external_triggering_of_empty_completion ( )
121
121
{
122
- this . AssertAllStagesStopped ( async ( ) =>
122
+ await this . AssertAllStagesStoppedAsync ( async ( ) =>
123
123
{
124
124
var neverSource = Source . Maybe < int > ( ) . Where ( _ => false ) ;
125
125
var counterSink = Sink . Aggregate < int , int > ( 0 , ( acc , _ ) => acc + 1 ) ;
@@ -137,9 +137,9 @@ public void Maybe_Source_must_allow_external_triggering_of_empty_completion()
137
137
}
138
138
139
139
[ Fact ]
140
- public void Maybe_Source_must_allow_external_triggering_of_non_empty_completion ( )
140
+ public async Task Maybe_Source_must_allow_external_triggering_of_non_empty_completion ( )
141
141
{
142
- this . AssertAllStagesStopped ( async ( ) =>
142
+ await this . AssertAllStagesStoppedAsync ( async ( ) =>
143
143
{
144
144
var neverSource = Source . Maybe < int > ( ) ;
145
145
var counterSink = Sink . First < int > ( ) ;
@@ -156,10 +156,9 @@ public void Maybe_Source_must_allow_external_triggering_of_non_empty_completion(
156
156
}
157
157
158
158
[ Fact ]
159
- public void Maybe_Source_must_allow_external_triggering_of_OnError ( )
159
+ public async Task Maybe_Source_must_allow_external_triggering_of_OnError ( )
160
160
{
161
- this . AssertAllStagesStopped ( ( ) =>
162
- {
161
+ await this . AssertAllStagesStoppedAsync ( ( ) => {
163
162
var neverSource = Source . Maybe < int > ( ) ;
164
163
var counterSink = Sink . First < int > ( ) ;
165
164
@@ -172,6 +171,7 @@ public void Maybe_Source_must_allow_external_triggering_of_OnError()
172
171
173
172
counterFuture . Invoking ( f => f . Wait ( TimeSpan . FromSeconds ( 3 ) ) ) . Should ( ) . Throw < Exception > ( )
174
173
. WithMessage ( "Boom" ) ;
174
+ return Task . CompletedTask ;
175
175
} , Materializer ) ;
176
176
}
177
177
0 commit comments