From 0fa8d531a73908c44e2093b32f10538cfde6760d Mon Sep 17 00:00:00 2001 From: Ollin Boer Bohan Date: Fri, 6 Jul 2018 12:47:11 -0700 Subject: [PATCH] Test getLatestTime instead of getLastestTime per https://github.com/ros/ros_comm/issues/1449#issuecomment-403118429 --- .../message_filters/test/test_message_filters_cache.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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),