Skip to content

Commit df6b20a

Browse files
committed
PersistentHighTest: ensure readings table is empty between tests
1 parent 39cff47 commit df6b20a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/test/java/com/eveningoutpost/dexdrip/evaluators/PersistentHighTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public void dataQualityCheckTest() {
3232
assertWithMessage("Predating sensor should fail").that(PersistentHigh.dataQualityCheck(1000, HIGH_MARK)).isFalse();
3333
assertWithMessage("Post sensor start no data should fail").that(PersistentHigh.dataQualityCheck(JoH.tsl(), HIGH_MARK)).isFalse();
3434

35+
BgReading.deleteALL();
3536
Sensor.create(START_TIME);
3637
// various all high time slices
3738
for (int i = 0; i < (12 * 4); i++) {
@@ -43,6 +44,7 @@ public void dataQualityCheckTest() {
4344
}
4445

4546
START_TIME++;
47+
BgReading.deleteALL();
4648
Sensor.create(START_TIME);
4749
// single dipped point in sequence after a point we might have succeeded
4850
for (int i = 0; i < (12 * 4); i++) {
@@ -54,6 +56,7 @@ public void dataQualityCheckTest() {
5456
}
5557

5658
START_TIME++;
59+
BgReading.deleteALL();
5760
Sensor.create(START_TIME);
5861
// single dipped point in sequence before we would succeed
5962
for (int i = 0; i < (12 * 4); i++) {

0 commit comments

Comments
 (0)