Skip to content

Commit

Permalink
chore(test): Reuse fs in S3FileSystemProviderTest
Browse files Browse the repository at this point in the history
  • Loading branch information
guicamest committed Sep 29, 2023
1 parent be6e85f commit 18b8bf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void init() {
provider = new S3FileSystemProvider();
lenient().when(mockClient.headObject(any(Consumer.class))).thenReturn(
CompletableFuture.supplyAsync(() -> HeadObjectResponse.builder().contentLength(100L).build()));
fs = provider.newFileSystem(URI.create(pathUri));
fs = provider.getFileSystem(URI.create(pathUri), true);
fs.clientProvider(new FixedS3ClientProvider(mockClient));
}

Expand Down

0 comments on commit 18b8bf3

Please sign in to comment.