Permalink
Browse files

wait long for test

set use_sim_time false before rate test.
  • Loading branch information...
OTL committed Jul 1, 2012
1 parent f8e33d8 commit 9505790830fa5be8226557994f914c8f4817e203
Showing with 3 additions and 1 deletion.
  1. +1 −1 test/test_node.rb
  2. +2 −0 test/test_rate.rb
View
@@ -189,7 +189,7 @@ def test_sim_time
end
clock_pub.publish(time_msg)
- sleep 0.5
+ sleep 1.0
sim_current = ROS::Time.now
assert_equal(time_msg.clock, sim_current)
View
@@ -5,6 +5,8 @@
class TestRate_rate < Test::Unit::TestCase
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)
(1..10).each do |i|
start = ::Time.now

0 comments on commit 9505790

Please sign in to comment.