Skip to content

Commit d01833c

Browse files
committed
Fixed CacheConsistencyRdbTest to start and use a docker container is specified per sys prop
1 parent d9b2c91 commit d01833c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractRDBConnectionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void checkRDBAvailable() {
5151

5252
@Before
5353
public void setUpConnection() throws Exception {
54-
dataSource = RDBDataSourceFactory.forJdbcUrl(URL, USERNAME, PASSWD);
54+
dataSource = RDBDataSourceFactory.forJdbcUrl(RdbUtils.mapJdbcURL(), USERNAME, PASSWD);
5555
Revision.setClock(getTestClock());
5656
mk = new DocumentMK(newBuilder(dataSource).build());
5757
}

oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/CacheConsistencyRDBTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class CacheConsistencyRDBTest extends AbstractRDBConnectionTest {
4545
@Before
4646
@Override
4747
public void setUpConnection() throws Exception {
48-
dataSource = RDBDataSourceFactory.forJdbcUrl(URL, USERNAME, PASSWD);
48+
dataSource = RDBDataSourceFactory.forJdbcUrl(RdbUtils.mapJdbcURL(), USERNAME, PASSWD);
4949
DocumentMK.Builder builder = new DocumentMK.Builder().clock(getTestClock()).setAsyncDelay(0);
5050
RDBOptions opt = new RDBOptions().tablePrefix("T" + Long.toHexString(System.currentTimeMillis())).dropTablesOnClose(true);
5151
store = new TestStore(dataSource, builder, opt);

0 commit comments

Comments
 (0)