fix tests
This commit is contained in:
parent
df76c8cee1
commit
a9c7b5c15b
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ class AapsErosPodStateManagerTest : TestBase() {
|
||||||
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
||||||
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
||||||
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
||||||
podStateManager.initState(0x0)
|
podStateManager.initState(0x01)
|
||||||
podStateManager.setInitializationParameters(
|
podStateManager.setInitializationParameters(
|
||||||
0, 0, FirmwareVersion(1, 1, 1),
|
0, 0, FirmwareVersion(1, 1, 1),
|
||||||
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
||||||
|
@ -46,7 +46,7 @@ class AapsErosPodStateManagerTest : TestBase() {
|
||||||
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
||||||
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
||||||
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
||||||
podStateManager.initState(0x0)
|
podStateManager.initState(0x01)
|
||||||
podStateManager.setInitializationParameters(
|
podStateManager.setInitializationParameters(
|
||||||
0, 0, FirmwareVersion(1, 1, 1),
|
0, 0, FirmwareVersion(1, 1, 1),
|
||||||
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
||||||
|
@ -70,7 +70,7 @@ class AapsErosPodStateManagerTest : TestBase() {
|
||||||
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
val now = DateTime(2020, 1, 1, 1, 2, 3, timeZone)
|
||||||
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
DateTimeUtils.setCurrentMillisFixed(now.millis)
|
||||||
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
val podStateManager = AapsErosPodStateManager(aapsLogger, sp, rxBus)
|
||||||
podStateManager.initState(0x0)
|
podStateManager.initState(0x01)
|
||||||
podStateManager.setInitializationParameters(
|
podStateManager.setInitializationParameters(
|
||||||
0, 0, FirmwareVersion(1, 1, 1),
|
0, 0, FirmwareVersion(1, 1, 1),
|
||||||
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
FirmwareVersion(2, 2, 2), timeZone, PodProgressStatus.ABOVE_FIFTY_UNITS
|
||||||
|
|
Loading…
Reference in a new issue