Skip to content

Commit 3e39efb

Browse files
Use protocol correctly in test url
1 parent ff13b6f commit 3e39efb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/oracle/r2dbc/impl/OracleReactiveJdbcAdapterTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,8 +634,9 @@ public void testTimezoneAsRegion() {
634634
// than a name (Europe/Warsaw).
635635
Connection connection = awaitOne(ConnectionFactories.get(
636636
ConnectionFactoryOptions.parse(format(
637-
"r2dbc:oracle:%s://%s:%d/%s?oracle.jdbc.timezoneAsRegion=false",
638-
protocol(), host(), port(), serviceName()))
637+
"r2dbc:oracle%s://%s:%d/%s?oracle.jdbc.timezoneAsRegion=false",
638+
protocol() == null ? "" : ":" + protocol(),
639+
host(), port(), serviceName()))
639640
.mutate()
640641
.option(USER, user())
641642
.option(PASSWORD, password())

0 commit comments

Comments
 (0)