Skip to content

Commit 28b68b5

Browse files
committed
fix(test): use RocksDB engine for ARM64 test runs
ARM64 lacks LevelDB JNI native library (leveldbjni). Configure Gradle test task to set tron.test.db.engine=ROCKSDB and exclude LevelDB-only tests on ARM64, matching testWithRocksDb task behavior.
1 parent c83d79c commit 28b68b5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

framework/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ test {
118118
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
119119
classDumpDir = file("$buildDir/jacoco/classpathdumps")
120120
}
121+
if (rootProject.archInfo.isArm64) {
122+
systemProperty 'tron.test.db.engine', 'ROCKSDB'
123+
exclude '**/LevelDbDataSourceImplTest.class'
124+
}
121125
if (isWindows()) {
122126
exclude '**/ShieldedTransferActuatorTest.class'
123127
exclude '**/BackupDbUtilTest.class'

0 commit comments

Comments
 (0)