Skip to content

Commit 11f1701

Browse files
committed
HHH-19983: enable parallel testing for spanner
1 parent 666f286 commit 11f1701

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

hibernate-core/hibernate-core.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ tasks.withType( Test.class ).each { test ->
270270
// see GradleParallelTestingResolver for how the test worker id is resolved in JDBC configs
271271
if ( project.db == "h2" || project.db == "hsqldb" || project.db == "pgsql_ci" || project.db == "edb_ci"
272272
|| project.db == "oracle_ci" || project.db == "oracle_xe_ci" || project.db == "mysql_ci" || project.db == "mariadb_ci"
273-
|| project.db == "db2_ci" || project.db == "mssql_ci" || project.db == "cockroachdb" ) {
273+
|| project.db == "db2_ci" || project.db == "mssql_ci" || project.db == "cockroachdb" || project.db == "spanner" ) {
274274
// Most systems have multi-threading and maxing out a core on both threads will hurt performance
275275
// Also, as soon as we hit 16+ threads, the returns are diminishing, so divide by 4
276276
def threadCount = Runtime.runtime.availableProcessors()

hibernate-envers/hibernate-envers.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ tasks.withType( Test.class ).each { test ->
5858
// see GradleParallelTestingResolver for how the test worker id is resolved in JDBC configs
5959
if ( project.db == "h2" || project.db == "hsqldb" || project.db == "pgsql_ci" || project.db == "edb_ci"
6060
|| project.db == "oracle_ci" || project.db == "oracle_xe_ci" || project.db == "mysql_ci" || project.db == "mariadb_ci"
61-
|| project.db == "db2_ci" || project.db == "mssql_ci" || project.db == "cockroachdb" ) {
61+
|| project.db == "db2_ci" || project.db == "mssql_ci" || project.db == "cockroachdb" || project.db == "spanner" ) {
6262
// Most systems have multi-threading and maxing out a core on both threads will hurt performance
6363
// Also, as soon as we hit 16+ threads, the returns are diminishing, so divide by 4
6464
def threadCount = Runtime.runtime.availableProcessors()

local-build-plugins/src/main/groovy/local.databases.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ ext {
413413
'jdbc.pass' : '', // Not used by Spanner
414414
'connection.init_sql' : '',
415415
// autoConfigEmulator=true creates the necessary instances and DBs if they don't exist already
416-
'jdbc.url' : 'jdbc:cloudspanner:/projects/orm-test-project/instances/orm-test-instance/databases/orm-test-db?autoConfigEmulator=true;lenient=true',
416+
'jdbc.url' : 'jdbc:cloudspanner:/projects/orm-test-project/instances/orm-test-instance/databases/orm-test-db-$worker?autoConfigEmulator=true;lenient=true',
417417
'jdbc.datasource' : 'com.google.cloud.spanner.jdbc.JdbcDriver'
418418
],
419419
]

0 commit comments

Comments
 (0)