Skip to content

Commit

Permalink
Make rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed May 22, 2024
1 parent ea25cd5 commit 11b7770
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/halt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run
end
end

if $0 == __FILE__
if $PROGRAM_NAME == __FILE__
puts example_description

ExampleHelper.world.action_logger.level = Logger::DEBUG
Expand Down
2 changes: 1 addition & 1 deletion lib/dynflow/director.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def track_execution_plan(execution_plan_id, finished)
if @world.coordinator.find_records(filters).any?
halt_execution(execution_plan_id)
raise Dynflow::Error,
"cannot execute execution_plan_id:#{execution_plan_id} it's execution is inhibited"
"cannot execute execution_plan_id:#{execution_plan_id} it's execution is inhibited"
end

@execution_plan_managers[execution_plan_id] =
Expand Down
2 changes: 2 additions & 0 deletions lib/dynflow/world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'dynflow/world/invalidation'

module Dynflow
# rubocop:disable Metrics/ClassLength
class World
include Algebrick::TypeCheck
include Algebrick::Matching
Expand Down Expand Up @@ -395,4 +396,5 @@ def spawn_and_wait(klass, name, *args)
return actor
end
end
# rubocop:enable Metrics/ClassLength
end
2 changes: 1 addition & 1 deletion test/executor_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ def assert_next_steps(expected_next_step_ids, finished_step_id = nil, success =
end

it 'halts a scheduled execution plan' do
plan = world.delay(Support::DummyExample::Dummy, {start_at: Time.now + 120})
plan = world.delay(Support::DummyExample::Dummy, { start_at: Time.now + 120 })
wait_for do
plan = world.persistence.load_execution_plan(plan.id)
plan.state == :scheduled
Expand Down

0 comments on commit 11b7770

Please sign in to comment.