Skip to content

Commit

Permalink
fix test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-munro committed Apr 8, 2024
1 parent 6f506b7 commit a90c71c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

class DownloadMany {

public static void downloadManyBlobs(String projectId, String bucketName,
public static void downloadManyBlobs(String bucketName,
List<BlobInfo> blobs, Path destinationDirectory) {

TransferManager transferManager = TransferManagerConfig.newBuilder().build().getService();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ public void uploadFiles() throws Exception {
String bucketName = BUCKET;
UploadMany.uploadManyFiles(bucketName, files);
String snippetOutput = stdOutCaptureRule.getCapturedOutputAsUtf8String();
assertThat(snippetOutput.contains("file.txt")).isTrue();
assertThat(snippetOutput.contains("file2.txt")).isTrue();
assertThat(snippetOutput.contains("file3.txt")).isTrue();
assertThat(snippetOutput.contains("file")).isTrue();
assertThat(snippetOutput.contains("file2")).isTrue();
assertThat(snippetOutput.contains("file3")).isTrue();
}

@Test
public void downloadFiles() {
DownloadMany.downloadManyBlobs(PROJECT_ID, BUCKET, blobs, tmp.getRoot().toPath());
DownloadMany.downloadManyBlobs(BUCKET, blobs, tmp.getRoot().toPath());
String snippetOutput = stdOutCaptureRule.getCapturedOutputAsUtf8String();
assertThat(snippetOutput.contains("blob1")).isTrue();
assertThat(snippetOutput.contains("blob2")).isTrue();
Expand Down

0 comments on commit a90c71c

Please sign in to comment.