diff --git a/.circleci/config.yml b/.circleci/config.yml index bbbc874ccb..b66ac53c71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,11 +22,11 @@ jobs: - android/change-java-version: java-version: 17 - #- android/start-emulator-and-run-tests: - #system-image: system-images;android-29;google_apis;x86 + - android/start-emulator-and-run-tests: + system-image: system-images;android-29;google_apis;x86 # Compile while the emulator starts to use the time. - #post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources database:impl:compileFullDebugAndroidTestSources - #test-command: ./gradlew database:impl:connectedFullDebugAndroidTest + post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources compileFullDebugAndroidTestSources + test-command: ./gradlew connectedFullDebugAndroidTest - android/run-tests: test-command: ./gradlew testFullDebugUnitTest diff --git a/pump/omnipod-dash/src/androidTest/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistoryTest.kt b/pump/omnipod-dash/src/androidTest/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistoryTest.kt index f4f8b72415..33bce4c817 100644 --- a/pump/omnipod-dash/src/androidTest/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistoryTest.kt +++ b/pump/omnipod-dash/src/androidTest/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/history/DashHistoryTest.kt @@ -5,6 +5,7 @@ import androidx.room.Room import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import app.aaps.shared.tests.AAPSLoggerTest +import com.github.guepardoapps.kulid.ULID import info.nightscout.androidaps.plugins.pump.omnipod.common.definition.OmnipodCommandType import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.DashHistoryDatabase import info.nightscout.androidaps.plugins.pump.omnipod.dash.history.database.HistoryRecordDao @@ -38,9 +39,9 @@ class DashHistoryTest { assertValue { it.isEmpty() } } - // dashHistory.createRecord(commandType = OmnipodCommandType.CANCEL_BOLUS, 0L).test().apply { - // assertValue { ULID.isValid(it) } - // } + dashHistory.createRecord(commandType = OmnipodCommandType.CANCEL_BOLUS, 0L).test().apply { + assertValue { it != 0L } + } dashHistory.getRecords().test().apply { assertValue { it.size == 1 }