mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(s3): expose inMemory flag in test constructor to fix S3 disk-persistence tests (#136)
This commit is contained in:
1 parent
f994bfa501
commit
522b3696a6
4 files changed
+5
-5
No files matched your search
@@ -27,7 +27,7 @@ class S3MultipartServiceTest {
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), tempDir);
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), tempDir, true);
|
||||
s3Service.createBucket("test-bucket", "us-east-1");
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ class S3ServiceTest {
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
Path dataRoot = tempDir.resolve("s3");
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), dataRoot);
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), dataRoot, false);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -22,7 +22,7 @@ class S3VersioningServiceTest {
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), tempDir);
|
||||
s3Service = new S3Service(new InMemoryStorage<>(), new InMemoryStorage<>(), tempDir, true);
|
||||
s3Service.createBucket("versioned-bucket", "us-east-1");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user