File tree 1 file changed +8
-8
lines changed
src/core/Akka.Streams.Tests/Dsl
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 6
6
//-----------------------------------------------------------------------
7
7
8
8
using System . Linq ;
9
+ using System . Threading . Tasks ;
9
10
using Akka . Streams . Dsl ;
10
11
using Akka . Streams . TestKit ;
11
12
using Akka . TestKit ;
@@ -25,19 +26,18 @@ public SubscriberSinkSpec(ITestOutputHelper helper = null) : base(helper)
25
26
}
26
27
27
28
[ Fact ]
28
- public void A_Flow_with_SubscriberSink_must_publish_elements_to_the_subscriber ( )
29
+ public async Task A_Flow_with_SubscriberSink_must_publish_elements_to_the_subscriber ( )
29
30
{
30
- this . AssertAllStagesStopped ( ( ) =>
31
- {
31
+ await this . AssertAllStagesStoppedAsync ( async ( ) => {
32
32
var c = this . CreateManualSubscriberProbe < int > ( ) ;
33
33
Source . From ( Enumerable . Range ( 1 , 3 ) ) . To ( Sink . FromSubscriber ( c ) ) . Run ( Materializer ) ;
34
34
35
- var s = c . ExpectSubscription ( ) ;
35
+ var s = await c . ExpectSubscriptionAsync ( ) ;
36
36
s . Request ( 3 ) ;
37
- c . ExpectNext ( 1 ) ;
38
- c . ExpectNext ( 2 ) ;
39
- c . ExpectNext ( 3 ) ;
40
- c . ExpectComplete ( ) ;
37
+ await c . ExpectNextAsync ( 1 ) ;
38
+ await c . ExpectNextAsync ( 2 ) ;
39
+ await c . ExpectNextAsync ( 3 ) ;
40
+ await c . ExpectCompleteAsync ( ) ;
41
41
} , Materializer ) ;
42
42
}
43
43
}
You can’t perform that action at this time.
0 commit comments