Skip to content

Commit

Permalink
wait long for test
Browse files Browse the repository at this point in the history
set use_sim_time false before rate test.
  • Loading branch information
OTL committed Jul 1, 2012
1 parent f8e33d8 commit 9505790
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_node.rb
Expand Up @@ -189,7 +189,7 @@ def test_sim_time
end end
clock_pub.publish(time_msg) clock_pub.publish(time_msg)


sleep 0.5 sleep 1.0


sim_current = ROS::Time.now sim_current = ROS::Time.now
assert_equal(time_msg.clock, sim_current) assert_equal(time_msg.clock, sim_current)
Expand Down
2 changes: 2 additions & 0 deletions test/test_rate.rb
Expand Up @@ -5,6 +5,8 @@


class TestRate_rate < Test::Unit::TestCase class TestRate_rate < Test::Unit::TestCase
def test_sleep def test_sleep
param = ROS::ParameterManager.new(ENV['ROS_MASTER_URI'], '/use_sim_time', {})
param.set_param('/use_sim_time', false)
r = ROS::Rate.new(10) r = ROS::Rate.new(10)
(1..10).each do |i| (1..10).each do |i|
start = ::Time.now start = ::Time.now
Expand Down

0 comments on commit 9505790

Please sign in to comment.