File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1010 fail-fast : false
1111 matrix :
1212 node-version :
13+ - 24
1314 - 20
14- - 18
1515 steps :
1616 - uses : actions/checkout@v4
1717 - uses : actions/setup-node@v4
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import path from 'node:path';
33import fs from 'node:fs/promises' ;
44import fsSync from 'node:fs' ;
55import { fileURLToPath } from 'node:url' ;
6+ import { setTimeout } from 'node:timers/promises' ;
67import touch from 'touch' ;
78import test from 'ava' ;
89import gulp from 'gulp' ;
@@ -167,6 +168,9 @@ test.serial(`compareLastModifiedTime ${pointer} detects file replacement with ol
167168 stream1 . on ( 'end' , resolve ) ;
168169 } ) ;
169170
171+ // Add a small delay to ensure dest file's mtime is properly set
172+ await setTimeout ( 10 ) ;
173+
170174 // Replace source with older file
171175 await fs . writeFile ( srcPath , 'console.log("old");' ) ;
172176 const oldTime = Date . now ( ) - 10_000 ;
You can’t perform that action at this time.
0 commit comments