mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-09 14:35:27 -04:00
cleanup lastHeard in node info (instead of position.time)
This commit is contained in:
@@ -17,15 +17,7 @@ class MeshServiceTest {
|
||||
|
||||
val newerTime = 20
|
||||
updateNodeInfoTime(nodeInfo, newerTime)
|
||||
Assert.assertEquals(newerTime, nodeInfo.position?.time)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun givenNodeInfo_whenUpdatingWithOldTime_thenPositionTimeIsNotUpdated() {
|
||||
val olderTime = 5
|
||||
val timeBeforeTryingToUpdate = nodeInfo.position?.time
|
||||
updateNodeInfoTime(nodeInfo, olderTime)
|
||||
Assert.assertEquals(timeBeforeTryingToUpdate, nodeInfo.position?.time)
|
||||
Assert.assertEquals(newerTime, nodeInfo.lastHeard)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user