Skip to content

Commit 3713f77

Browse files
committed
fix test
1 parent 8972ce6 commit 3713f77

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/test/java/info/nightscout/androidaps/plugins/general/smsCommunicator/SmsCommunicatorPluginTest.java

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import info.nightscout.androidaps.queue.CommandQueue;
4040
import info.nightscout.androidaps.utils.DateUtil;
4141
import info.nightscout.androidaps.utils.SP;
42+
import info.nightscout.androidaps.utils.T;
4243
import info.nightscout.androidaps.utils.XdripCalibrations;
4344

4445
import static org.mockito.ArgumentMatchers.any;
@@ -674,6 +675,7 @@ public void processBolusTest() {
674675
when(MainApp.getConstraintChecker().applyBolusConstraints(any())).thenReturn(new Constraint<>(1d));
675676

676677
when(DateUtil.now()).thenReturn(1000L);
678+
when(SP.getLong(R.string.key_smscommunicator_remotebolusmindistance, T.msecs(Constants.remoteBolusMinDistance).mins())).thenReturn(15L);
677679
//BOLUS 1
678680
smsCommunicatorPlugin.setMessages(new ArrayList<>());
679681
sms = new Sms("1234", "BOLUS 1");

0 commit comments

Comments
 (0)