fix tests

This commit is contained in:
Milos Kozak 2023-09-20 14:06:52 +02:00
parent 34b26b194f
commit 12a15b3ad1

View file

@ -94,7 +94,7 @@ class GlucoseStatusTest : TestBaseWithProfile() {
@Test fun returnOldDataIfAllowed() {
Mockito.`when`(autosensDataStore.getBucketedDataTableCopy()).thenReturn(generateOldBgData())
val glucoseStatus: GlucoseStatus? = GlucoseStatusProviderImpl(aapsLogger, iobCobCalculatorPlugin, dateUtil, decimalFormatter).getGlucoseStatusData(true)
assertThat(glucoseStatus).isNull()
assertThat(glucoseStatus).isNotNull()
}
@Test fun averageShouldNotFailOnEmptyArray() {