Skip to content

Commit

Permalink
don't pass collaboration argument to #advance anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Feb 21, 2024
1 parent 6128af2 commit f61889f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/trailblazer/workflow/collaboration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def initial_lane_positions(lanes)
# Triggers the {start_task} event and runs the entire collaboration until message is sent and
# the throwing activity stops in a suspend or End terminus.
# @private
def advance(collaboration, (ctx, flow), circuit_options, lane_positions:, start_task_position:, message_flow:)
def advance((ctx, flow), circuit_options, lane_positions:, start_task_position:, message_flow:)
signal = nil

# start_task, activity,
Expand Down
1 change: 0 additions & 1 deletion lib/trailblazer/workflow/discovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def call(collaboration, start_task_position:, run_multiple_times: {}, initial_la
discovered_state = discovered_state.merge(ctx_before: [ctx.inspect])

configuration, (ctx, flow) = Trailblazer::Workflow::Collaboration::Synchronous.advance(
collaboration,
[ctx, {throw: []}],
{}, # circuit_options

Expand Down
2 changes: 1 addition & 1 deletion lib/trailblazer/workflow/test/assertions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def assert_advance(event_label, test_plan:, lanes_cfg:, schema:, message_flow:,
ctx_for_advance = ctx

configuration, (ctx, flow) = Trailblazer::Workflow::Collaboration::Synchronous.advance(
schema,
# schema,
[ctx_for_advance, {throw: []}],
{}, # circuit_options

Expand Down

0 comments on commit f61889f

Please sign in to comment.