test/dispatcher_test.rb in dynflow-1.4.8 vs test/dispatcher_test.rb in dynflow-1.4.9

- old
+ new

@@ -47,9 +47,15 @@ it 'succeeds when executor acts as client' do result = client_world.trigger(Support::DummyExample::ComposedAction, :timeout => 3) plan = result.finished.value assert_equal('finish', plan.actions.first.output[:event]) end + + it 'does not error on dispatching an optional event' do + request = client_world.event('123', 1, nil, optional: true) + request.wait(20) + assert_match /Could not find an executor for optional .*, discarding/, request.reason.message + end end end end def self.supports_dynamic_retry