Skip to content

Commit

Permalink
Use S_TO_NS in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sloretz committed Oct 17, 2017
1 parent b9d015f commit f0b36e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rclpy/test/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import unittest

from rclpy.constants import S_TO_NS
import rclpy.utilities


Expand All @@ -23,7 +24,7 @@ def test_timeout_sec_to_nsec(self):
self.assertGreater(0, rclpy.utilities.timeout_sec_to_nsec(None))
self.assertGreater(0, rclpy.utilities.timeout_sec_to_nsec(-1))
self.assertEqual(0, rclpy.utilities.timeout_sec_to_nsec(0))
self.assertEqual(1000000000, rclpy.utilities.timeout_sec_to_nsec(1))
self.assertEqual(1.5 * S_TO_NS, rclpy.utilities.timeout_sec_to_nsec(1.5))


if __name__ == '__main__':
Expand Down

0 comments on commit f0b36e8

Please sign in to comment.