Skip to content

Commit 8796b1e

Browse files
dependabot[bot]ebyhr
authored andcommitted
Bump com.h2database:h2 from 1.4.192 to 2.4.240
Bumps [com.h2database:h2](https://github.com/h2database/h2database) from 1.4.192 to 2.4.240. - [Release notes](https://github.com/h2database/h2database/releases) - [Commits](h2database/h2database@version-1.4.192...version-2.4.240) --- updated-dependencies: - dependency-name: com.h2database:h2 dependency-version: 2.4.240 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent b38096b commit 8796b1e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

gateway-ha/src/test/java/io/trino/gateway/ha/router/TestHaGatewayManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void testGatewayManager()
8080
assertThat(haGatewayManager.getActiveBackends("adhoc")).isEmpty();
8181
assertThat(haGatewayManager.getAllBackends())
8282
.extracting(ProxyBackendConfiguration::getRoutingGroup)
83-
.containsExactly("adhoc", "etl");
83+
.containsExactly("etl", "adhoc");
8484

8585
// Delete a backend
8686
haGatewayManager.deleteBackend("adhoc1");

gateway-ha/src/test/java/io/trino/gateway/ha/router/TestResourceGroupsManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ void testCreateGlobalProperties()
290290
}
291291
catch (Exception ex) {
292292
assertThat(ex.getCause())
293-
.isInstanceOf(org.h2.jdbc.JdbcSQLException.class)
293+
.isInstanceOf(org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException.class)
294294
.hasMessageStartingWith("Check constraint violation:");
295295
}
296296
}
@@ -330,7 +330,7 @@ void testUpdateGlobalProperties()
330330
}
331331
catch (Exception ex) {
332332
assertThat(ex.getCause())
333-
.isInstanceOf(org.h2.jdbc.JdbcSQLException.class)
333+
.isInstanceOf(org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException.class)
334334
.hasMessageStartingWith("Check constraint violation:");
335335
}
336336
}

gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setUp()
4444
specificDb = "h2db-" + System.currentTimeMillis();
4545
File tempH2DbDir = Path.of(System.getProperty("java.io.tmpdir"), specificDb).toFile();
4646
tempH2DbDir.deleteOnExit();
47-
String jdbcUrl = "jdbc:h2:" + tempH2DbDir.getAbsolutePath();
47+
String jdbcUrl = "jdbc:h2:" + tempH2DbDir.getAbsolutePath() + ";NON_KEYWORDS=NAME,VALUE";
4848
HaGatewayTestUtils.seedRequiredData(tempH2DbDir.getAbsolutePath());
4949
DataStoreConfiguration db = new DataStoreConfiguration(jdbcUrl, "sa",
5050
"sa", "org.h2.Driver", 4, false);

0 commit comments

Comments
 (0)