-
Notifications
You must be signed in to change notification settings - Fork 1.1k
storage: speed up IT #3023
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
storage: speed up IT #3023
Conversation
We create fewer blobs since the basic case is already tested by other ITs. Fixes #3019, hopefully.
| while (Iterators.size(page.iterateAll().iterator()) != 2) { | ||
|
|
||
| String projectId = remoteStorageHelper.getOptions().getProjectId(); | ||
| for (; ; ) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| Storage.BlobListOption.fields(), | ||
| Storage.BlobListOption.userProject(projectId)); | ||
| int size = Iterators.size(page.iterateAll().iterator()); | ||
| if (size == 1) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@garrettjonesgoogle PTAL. I also slightly increased the time limit. Hopefully it flakes less. |
| // Otherwise, expect one blob, since we only put in one above. | ||
| if (!blobs.isEmpty()) { | ||
| assertThat(blobs).hasSize(1); | ||
| return; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
garrettjonesgoogle
left a comment
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
We create fewer blobs since the basic case is already
tested by other ITs.
Fixes #3019, hopefully.