mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-07 05:12:20 +00:00
test(coverage): improve lock-utils coverage via weekly agent run
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
0c548a0dbd
commit
d191a2bdfb
58 files changed
+107
-3120
No files matched your search
+1
-1
@@ -14,7 +14,7 @@ export { relayListLabel } from './utils.mjs';
|
||||
* @param {Object} deps - Dependency injection for testing
|
||||
* @returns {Promise<Set<string>>} - Set of agent names that have completed their task
|
||||
*/
|
||||
export async function getCompletedAgents(cadence, logDir, deps) {
|
||||
export async function getCompletedAgents(cadence, logDir, deps = {}) {
|
||||
const { readdir = fs.readdir, getDateStr = todayDateStr, getIsoWeek = getIsoWeekStr } = deps;
|
||||
const completed = new Set();
|
||||
const targetDir = path.join(logDir, cadence);
|
||||
|
||||
Reference in new issue
Block a user