Skip to content

Commit

Permalink
Remove assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <[email protected]>
  • Loading branch information
sloretz committed Oct 14, 2022
1 parent 5a0f651 commit 76fd188
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions rclpy/test/benchmark/test_benchmark_guard_condition.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ def bm():
while num_calls < ONE_THOUSAND:
gc.trigger()
executor.spin_once(timeout_sec=0)
return num_calls == ONE_THOUSAND

assert benchmark(bm)
benchmark(bm)

executor.shutdown()
node.destroy_guard_condition(gc)
Expand Down
3 changes: 1 addition & 2 deletions rclpy/test/benchmark/test_benchmark_pub_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ def bm():
pub.publish(EmptyMsg())
while num_calls < ONE_THOUSAND:
executor.spin_once(timeout_sec=0)
return num_calls == ONE_THOUSAND

assert benchmark(bm)
benchmark(bm)

executor.shutdown()
node.destroy_publisher(pub)
Expand Down
6 changes: 2 additions & 4 deletions rclpy/test/benchmark/test_benchmark_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ def bm():
num_calls = 0
while num_calls < ONE_THOUSAND:
executor.spin_once(timeout_sec=0)
return num_calls == ONE_THOUSAND

assert benchmark(bm)
benchmark(bm)

executor.shutdown()
node.destroy_timer(timer)
Expand Down Expand Up @@ -74,9 +73,8 @@ def bm():
num_calls = 0
while num_calls < ONE_THOUSAND:
executor.spin_once(timeout_sec=0)
return num_calls == ONE_THOUSAND

assert benchmark(bm)
benchmark(bm)

executor.shutdown()
node.destroy_timer(timer)
Expand Down

0 comments on commit 76fd188

Please sign in to comment.