From edb62caafcae40f887a117b32ddc92bc3791655d Mon Sep 17 00:00:00 2001 From: Bhumika Saini Date: Tue, 3 Oct 2023 17:22:54 +0530 Subject: [PATCH] Remove DummyS3AsyncService Signed-off-by: Bhumika Saini --- .../org/opensearch/repositories/s3/S3RepositoryTests.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3RepositoryTests.java b/plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3RepositoryTests.java index a99d6170165fe..7f28fce594de1 100644 --- a/plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3RepositoryTests.java +++ b/plugins/repository-s3/src/test/java/org/opensearch/repositories/s3/S3RepositoryTests.java @@ -73,12 +73,6 @@ public void refreshAndClearCache(Map clientsSettings) public void close() {} } - private static class DummyS3AsyncService extends S3AsyncService { - DummyS3AsyncService(Path configPath) { - super(configPath); - } - } - public void testInvalidChunkBufferSizeSettings() { // chunk < buffer should fail final Settings s1 = bufferAndChunkSettings(10, 5); @@ -156,7 +150,7 @@ private S3Repository createS3Repo(RepositoryMetadata metadata) { null, null, null, - new DummyS3AsyncService(configPath()), + null, false ) { @Override