Trying to increase the chance of these tests passing statistically.

This commit is contained in:
Jeremy Leibs 2010-06-04 01:53:03 +00:00
parent d1b34432fd
commit b75494e5b2
3 changed files with 7 additions and 7 deletions

View File

@ -140,7 +140,7 @@ class RandomPlay(unittest.TestCase):
# Messages can arrive late, but never very early Both of
# these bounds are much larger than they ought to be, but
# you never know with a heavily loaded system.
self.assertTrue(input_time - expect_time > -.1)
self.assertTrue(input_time - expect_time > -.5)
self.assertTrue(abs(input_time - expect_time) < .5)
break

View File

@ -1,5 +1,5 @@
<launch>
<test time-limit="100" test-name="02random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 1.0 0"/>
<test time-limit="100" test-name="03random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 0.5 0"/>
<test time-limit="100" test-name="04random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 2.0 0"/>
<test time-limit="100" test-name="02random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 1.0 0" retry="3"/>
<test time-limit="100" test-name="03random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 0.5 0" retry="3"/>
<test time-limit="100" test-name="04random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 2.0 0" retry="3"/>
</launch>

View File

@ -1,6 +1,6 @@
<launch>
<param name="use_sim_time" value="true"/>
<test time-limit="100" test-name="05random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 1.0 1"/>
<test time-limit="100" test-name="06random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 0.5 1"/>
<test time-limit="100" test-name="07random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 2.0 1"/>
<test time-limit="100" test-name="05random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 1.0 1" retry="3"/>
<test time-limit="100" test-name="06random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 0.5 1" retry="3"/>
<test time-limit="100" test-name="07random_play" pkg="test_rosbag" type="random_play.py" args="54321 10 10.0 2.0 1" retry="3"/>
</launch>