Skip to content

Commit 1a5c9ca

Browse files
committed
#19 | Sleep 100ms in atomicReplace
Making it bigger slows tests down. Nuking this atomic business is imminent
1 parent 7a76603 commit 1a5c9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ssg/lib/fileSystemHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const ensureDirectory = async (path) => {
4040
* Building in a separate temp location releases all file handles
4141
* before the final swap.
4242
*/
43-
const atomicReplace = async (targetPath, buildFn, sleepTime = 1000) => {
43+
const atomicReplace = async (targetPath, buildFn, sleepTime = 100) => {
4444
const sleep = (duration) => new Promise(resolve => setTimeout(resolve, duration))
4545
const tempPath = await atomicFS.mkdtemp(join(tmpdir(), 'atomic-replace-'))
4646
try {

0 commit comments

Comments
 (0)