File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,15 @@ module WorldTest
5757 plan1 = world . plan ( Support ::DummyExample ::Dummy )
5858 plan2 = world . chain ( plan1 . id , Support ::DummyExample ::Dummy )
5959
60- ready = world . persistence . find_ready_delayed_plans ( Time . now )
61- _ ( ready . count ) . must_equal 0
60+ preexisting = world . persistence . find_ready_delayed_plans ( Time . now ) . map ( &:execution_plan_uuid )
6261
6362 done = Concurrent ::Promises . resolvable_future
6463 world . execute ( plan1 . id , done )
6564 done . wait
6665
6766 plan1 = world . persistence . load_execution_plan ( plan1 . id )
6867 _ ( plan1 . state ) . must_equal :stopped
69- ready = world . persistence . find_ready_delayed_plans ( Time . now )
68+ ready = world . persistence . find_ready_delayed_plans ( Time . now ) . reject { | p | preexisting . include? p . execution_plan_uuid }
7069 _ ( ready . count ) . must_equal 1
7170 _ ( ready . first . execution_plan_uuid ) . must_equal plan2 . execution_plan_id
7271 end
You can’t perform that action at this time.
0 commit comments