Skip to content

Commit

Permalink
OAK-11310: add properties before datastore is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
t-rana committed Dec 14, 2024
1 parent 104c0b4 commit 8c95416
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class TestS3DSWithSmallCache extends TestS3Ds {
@Override
@Before
public void setUp() throws Exception {
super.setUp();
props.setProperty("cacheSize", String.valueOf(dataLength * 10));
super.setUp();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class TestS3Ds extends AbstractDataStoreTest {
private static Date overallStartTime = getBackdatedDate();
private Date thisTestStartTime = null;

protected Properties props;
protected Properties props = new Properties();

protected String bucket;

Expand All @@ -127,7 +127,7 @@ public static void assumptions() {
@Override
@Before
public void setUp() throws Exception {
props = getS3Config();
props.putAll(getS3Config());
thisTestStartTime = getBackdatedDate();
bucket = randomGen.nextInt(9999) + "-" +
randomGen.nextInt(9999) + "-s3ds-unittest-autogenerated";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class TestS3DsCacheOff extends TestS3Ds {
@Override
@Before
public void setUp() throws Exception {
super.setUp();
props.setProperty("cacheSize", "0");
super.setUp();
}
}

0 comments on commit 8c95416

Please sign in to comment.