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

Flush on binary writer close #141

Merged
merged 4 commits into from
Oct 3, 2019

Conversation

raganhan
Copy link
Contributor

@raganhan raganhan commented Oct 3, 2019

Issue #, if available:
resolves #140

Description of changes:
Flushes the ion_stream when the binary writer closes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@raganhan raganhan requested a review from tgregg October 3, 2019 20:17
tgregg
tgregg previously approved these changes Oct 3, 2019
ASSERT_EQ(file_size, 4 + 1);
}

TEST_F(WriterTest, BinaryWriterCloseMustTextStream) {
Copy link
Contributor

Choose a reason for hiding this comment

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

BinaryWriterCloseMustTextStream -> TextWriterCloseMustFlushStream

@raganhan raganhan merged commit 6c85a1e into amazon-ion:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Closing binary writer does not flush output stream
2 participants