-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[67-74] UnfoldResourceSourceSpec
#6615
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use async
testkit APIs instead of work-arounds
@@ -90,51 +89,51 @@ public void A_UnfoldResourceSource_must_read_contents_from_a_file() | |||
|
|||
sub.Request(1); | |||
c.ExpectComplete(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use async instead.
p.Subscribe(c); | ||
var sub = c.ExpectSubscription(); | ||
|
||
Enumerable.Range(0,50).ForEach(i => | ||
Enumerable.Range(0, 50).ForEach(i => | ||
{ | ||
sub.Request(1); | ||
c.ExpectNext().Should().Be(i < 10 ? ManyLinesArray[i] : ManyLinesArray[i + 10]); | ||
}); | ||
sub.Request(1); | ||
c.ExpectComplete(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use async
instead
@@ -147,14 +146,14 @@ public void A_UnfoldResourceSource_must_close_and_open_stream_again_when_strateg | |||
c.ExpectNext().Should().Be(ManyLinesArray[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use async
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Changes
AssertAllStagesStopped
toAssertAllStagesStoppedAsync