Skip to content

Commit 1f76486

Browse files
committed
Don't run MSSQL tests on aarch64/arm64
The containers aren't built multi-arch so this leads to a very bad time on M1 macs :-)
1 parent 6147268 commit 1f76486

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/test/kotlin/recce/server/dataset/DatasetRecServiceCrossDatabaseIntegrationTest.kt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,17 @@ internal open class DatasetRecServiceCrossDatabaseIntegrationTest {
3030
/**
3131
* Databases which we expect to produce matching hashes for values of similar types.
3232
*/
33-
private val databases: Map<String, JdbcDatabaseContainer<Nothing>> = mapOf(
34-
"mssql" to MSSQLServerContainer<Nothing>("mcr.microsoft.com/mssql/server:2019-latest").acceptLicense(),
35-
"mysql" to MySQLContainer("mysql:8"),
36-
"mariadb" to MariaDBContainer("mariadb:10"),
37-
"postgres" to PostgreSQLContainer("postgres:14-alpine")
38-
)
33+
private val databases: Map<String, JdbcDatabaseContainer<Nothing>> = buildMap {
34+
put("mysql", MySQLContainer("mysql:8"))
35+
put("mariadb", MariaDBContainer("mariadb:10"))
36+
put("postgres", PostgreSQLContainer("postgres:14-alpine"))
37+
if (!System.getProperty("os.arch").contains(Regex("arm64|aarch64"))) {
38+
put(
39+
"mssql",
40+
MSSQLServerContainer<Nothing>("mcr.microsoft.com/mssql/server:2019-latest").acceptLicense()
41+
)
42+
}
43+
}
3944

4045
/**
4146
* Types we want to test for each database combination

0 commit comments

Comments
 (0)