Skip to content

Commit 42d7f4c

Browse files
committed
chore: fix rubocop violations
1 parent 2600608 commit 42d7f4c

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

test/test_port.rb

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,15 @@
205205
.new_instances
206206
.should_receive(:resolve_orocos_accessor)
207207
.with(
208-
->(port) { barrier.wait; true },
209-
any
208+
proc do
209+
barrier.wait
210+
true
211+
end, any
210212
).pass_thru
211213

212-
port_writer = task.in_port.writer
213-
expect_execution.join_all_waiting_work(false)
214+
_port_writer = task.in_port.writer
215+
expect_execution
216+
.join_all_waiting_work(false)
214217
.to_achieve { barrier.number_waiting == 1 }
215218

216219
plan.unmark_mission_task(task)
@@ -392,12 +395,15 @@ def configure
392395
.new_instances
393396
.should_receive(:resolve_orocos_accessor)
394397
.with(
395-
->(port) { barrier.wait; true },
396-
any
398+
proc do
399+
barrier.wait
400+
true
401+
end, any
397402
).pass_thru
398403

399-
port_writer = task.out_port.reader
400-
expect_execution.join_all_waiting_work(false)
404+
_port_writer = task.out_port.reader
405+
expect_execution
406+
.join_all_waiting_work(false)
401407
.to_achieve { barrier.number_waiting == 1 }
402408

403409
plan.unmark_mission_task(task)

0 commit comments

Comments
 (0)