File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -321,9 +321,14 @@ describe('validateRunFromBlock', () => {
321321 } )
322322
323323 it ( 'rejects blocks with unexecuted upstream dependencies' , ( ) => {
324- // A → B, only A executed but B depends on A
325- const dag = createDAG ( [ createNode ( 'A' , [ { target : 'B' } ] ) , createNode ( 'B' ) ] )
326- const executedBlocks = new Set < string > ( ) // A was not executed
324+ // X → A → B, where A was not executed but B depends on A
325+ // X is the entry point (no incoming edges), A is a regular block
326+ const dag = createDAG ( [
327+ createNode ( 'X' , [ { target : 'A' } ] ) ,
328+ createNode ( 'A' , [ { target : 'B' } ] ) ,
329+ createNode ( 'B' ) ,
330+ ] )
331+ const executedBlocks = new Set ( [ 'X' ] ) // X executed but A was not
327332
328333 const result = validateRunFromBlock ( 'B' , dag , executedBlocks )
329334
You can’t perform that action at this time.
0 commit comments