diff --git a/utilities/message_filters/test/test_message_filters_cache.py b/utilities/message_filters/test/test_message_filters_cache.py index dabda595a8..2fabb1a7f9 100644 --- a/utilities/message_filters/test/test_message_filters_cache.py +++ b/utilities/message_filters/test/test_message_filters_cache.py @@ -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),