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

A couple of fixes affecting the FileSubscriber #5035

Merged
merged 2 commits into from
May 25, 2021

Conversation

ismaelhamed
Copy link
Member

Ports of #24577 and #25089

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -2564,6 +2564,11 @@ namespace Akka.Streams.Extra
}
namespace Akka.Streams.IO
{
public sealed class AbruptIOTerminationException : System.Exception
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


var ex = Intercept<AbruptIOTerminationException>(() => completion.Wait(TimeSpan.FromSeconds(3)));
ex.IoResult.Count.ShouldBe(1001);
CheckFileContent(f, string.Join("", _testLines.TakeWhile(s => !s.Contains('b'))));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

var completion = Source.Failed<ByteString>(new Exception("Boom!"))
.RunWith(StreamConverters.FromOutputStream(() => new OutputStream()), _materializer);

AssertThrows<AbruptIOTerminationException>(completion.Wait);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) May 25, 2021 14:52
@Aaronontheweb Aaronontheweb merged commit b888b40 into akkadotnet:dev May 25, 2021
This was referenced Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants