-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Fix BufferedStreamConsumer tests #7773
Conversation
- "format" | ||
- "azure_blob_storage_account_name" | ||
- "azure_blob_storage_account_key" | ||
- "format" |
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.
Are these formatting changes expected?
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.
this was the output of the format
|
||
@Test | ||
public void testIt() { | ||
for (int i = 1; i < 1000; i++) { |
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.
Iterating 1000 times does not seem necessary since the current implementation is a naive one.
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.
This should fix master build once it passes :airbyte-integrations:bases:base-java:test
?
airbyte-commons/src/main/java/io/airbyte/commons/bytes/ByteUtils.java
Outdated
Show resolved
Hide resolved
- "format" | ||
- "azure_blob_storage_account_name" | ||
- "azure_blob_storage_account_key" | ||
- "format" |
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.
this was the output of the format
What
#7719 introduced changes to bufferedStreamconsumer but I goofed and forgot to fix unit tests. This PR fixes the unit tests by making them byte-based instead of record-count-based.