mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
refactor: improve secure-fs throttling configuration and add unit tests
- Enhanced the configureThrottling function to prevent changes to maxConcurrency while operations are in flight. - Added comprehensive unit tests for secure-fs throttling and retry logic, ensuring correct behavior and configuration. - Removed outdated secure-fs test file and replaced it with a new, updated version to improve test coverage.
This commit is contained in:
@@ -89,9 +89,7 @@ Binary file ${cleanPath} added
|
||||
const fileSize = Number(stats.size);
|
||||
if (fileSize > MAX_SYNTHETIC_DIFF_SIZE) {
|
||||
const sizeKB = Math.round(fileSize / 1024);
|
||||
return createNewFileDiff(relativePath, '100644', [
|
||||
`[File too large to display: ${sizeKB}KB]`,
|
||||
]);
|
||||
return createNewFileDiff(cleanPath, '100644', [`[File too large to display: ${sizeKB}KB]`]);
|
||||
}
|
||||
|
||||
// Read file content
|
||||
|
||||
Reference in New Issue
Block a user