Skip to content

Commit

Permalink
Fix paramtest for empty values of a parameter (ros#2053)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewkoo committed Oct 15, 2020
1 parent 7281e5f commit 28f17fe
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 param_obtained in None 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 28f17fe

Please sign in to comment.