Skip to content

Commit

Permalink
Fix paramtest for empty values of a parameter (#2054)
Browse files Browse the repository at this point in the history
* Fix paramtest for empty values of a parameter (#2053)

* Fix paramtest for empty values of a parameter (#2053)
  • Loading branch information
lewkoo authored and jacobperron committed Oct 22, 2020
1 parent 7b9a4b1 commit f41086e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/test_rosparam/test/test_dump.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{foo: bar}
foo: bar
2 changes: 1 addition & 1 deletion tools/rostest/nodes/paramtest
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ParamTest(unittest.TestCase):

wallclock_timeout_t = time.time() + wait_time
param_obtained = None
while not param_obtained and time.time() < wallclock_timeout_t:
while param_obtained is None and time.time() < wallclock_timeout_t:
try:
param_obtained = rospy.get_param(testattr_paramname_target)
except KeyError as e:
Expand Down

0 comments on commit f41086e

Please sign in to comment.