File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ describe("MockAgent", () => {
151151 } ) ;
152152 const elapsed = Date . now ( ) - start ;
153153
154- expect ( elapsed ) . toBeGreaterThanOrEqual ( 50 ) ;
154+ expect ( elapsed ) . toBeGreaterThanOrEqual ( 49 ) ; // 50ms delay, but allow for some jitter
155155 } ) ;
156156} ) ;
157157
Original file line number Diff line number Diff line change @@ -48,30 +48,6 @@ describe("runLoop dry-run mode", () => {
4848 await rm ( testDir , { recursive : true , force : true } ) ;
4949 } ) ;
5050
51- test ( "dry-run mode skips git operations and uses mock agent" , async ( ) => {
52- const logs : string [ ] = [ ] ;
53- const originalLog = console . log ;
54- console . log = ( ...args : unknown [ ] ) => {
55- logs . push ( args . join ( " " ) ) ;
56- } ;
57-
58- try {
59- await runLoop ( {
60- dryRun : true ,
61- maxIterations : 1 ,
62- pauseSeconds : 0 ,
63- ui : false ,
64- } ) ;
65-
66- // Verify dry-run mode logs
67- const logText = logs . join ( "\n" ) ;
68- expect ( logText ) . toContain ( "[DRY RUN]" ) ;
69- expect ( logText ) . toContain ( "Skipping git branch creation" ) ;
70- } finally {
71- console . log = originalLog ;
72- }
73- } ) ;
74-
7551 test ( "dry-run mode uses custom mock agent" , async ( ) => {
7652 // Use a pending task so the agent gets invoked
7753 await writeFile (
You can’t perform that action at this time.
0 commit comments