From 18b8bf39d374cee0417618b04badb6c5156292a7 Mon Sep 17 00:00:00 2001 From: guicamest Date: Fri, 29 Sep 2023 14:13:05 +0200 Subject: [PATCH] chore(test): Reuse fs in S3FileSystemProviderTest --- .../software/amazon/nio/spi/s3/S3FileSystemProviderTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/software/amazon/nio/spi/s3/S3FileSystemProviderTest.java b/src/test/java/software/amazon/nio/spi/s3/S3FileSystemProviderTest.java index 22ea9bb9..f3deff53 100644 --- a/src/test/java/software/amazon/nio/spi/s3/S3FileSystemProviderTest.java +++ b/src/test/java/software/amazon/nio/spi/s3/S3FileSystemProviderTest.java @@ -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)); }