Skip to content

Commit

Permalink
Test getLatestTime instead of getLastestTime
Browse files Browse the repository at this point in the history
  • Loading branch information
madebyollin authored Jul 6, 2018
1 parent 9429935 commit 0fa8d53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utilities/message_filters/test/test_message_filters_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ def test_all_funcs(self):
self.assertEqual(s, rospy.Time(3),
"invalid msg return by getElemBeforeTime")

s = cache.getLastestTime()
s = cache.getLatestTime()
self.assertEqual(s, rospy.Time(4),
"invalid stamp return by getLastestTime")
"invalid stamp return by getLatestTime")
self.assertEqual(s, cache.getLastestTime(),
"stamps returned by getLatestTime and getLastestTime don't match")

s = cache.getOldestTime()
self.assertEqual(s, rospy.Time(0),
Expand Down

0 comments on commit 0fa8d53

Please sign in to comment.