You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by kl...@apache.org on 2022/05/08 20:25:15 UTC

[camel] branch main updated: Fix failing tests by using unique DB name

This is an automated email from the ASF dual-hosted git repository.

klease pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 90f8f64df56 Fix failing tests by using unique DB name
90f8f64df56 is described below

commit 90f8f64df562945835443051293029498746979a
Author: klease <kl...@cegetel.net>
AuthorDate: Sun May 8 22:24:47 2022 +0200

    Fix failing tests by using unique DB name
---
 .../java/org/apache/camel/component/sql/SqlGeneratedKeysInLoopTest.java | 2 +-
 .../test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysInLoopTest.java b/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysInLoopTest.java
index c198697fac0..8d62ed3ed7c 100644
--- a/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysInLoopTest.java
+++ b/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysInLoopTest.java
@@ -45,7 +45,7 @@ public class SqlGeneratedKeysInLoopTest extends CamelTestSupport {
         // Only HSQLDB seem to handle:
         // - more than one generated column in row
         // - return all keys generated in batch insert
-        db = new EmbeddedDatabaseBuilder()
+        db = new EmbeddedDatabaseBuilder().generateUniqueName(true)
                 .setType(EmbeddedDatabaseType.HSQL).addScript("sql/createAndPopulateDatabase3.sql").build();
 
         super.setUp();
diff --git a/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java b/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java
index b8a95b2cc6b..15dead685b6 100644
--- a/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java
+++ b/components/camel-sql/src/test/java/org/apache/camel/component/sql/SqlGeneratedKeysTest.java
@@ -46,7 +46,7 @@ public class SqlGeneratedKeysTest extends CamelTestSupport {
         // Only HSQLDB seem to handle:
         // - more than one generated column in row
         // - return all keys generated in batch insert
-        db = new EmbeddedDatabaseBuilder()
+        db = new EmbeddedDatabaseBuilder().generateUniqueName(true)
                 .setType(EmbeddedDatabaseType.HSQL).addScript("sql/createAndPopulateDatabase3.sql").build();
 
         super.setUp();