A fresh path for a case's watchdog to watch, in its own temp dir.
()
| 148 | |
| 149 | /** A fresh path for a case's watchdog to watch, in its own temp dir. */ |
| 150 | function progressFile(): string { |
| 151 | const dir = fs.mkdtempSync(path.join(require('os').tmpdir(), 'cg-wd-')); |
| 152 | progressDirs.push(dir); |
| 153 | return path.join(dir, 'db-wal'); |
| 154 | } |
| 155 | |
| 156 | /** Grow `file` every 150ms for `forMs`; resolves when done. */ |
| 157 | function growFile(file: string, forMs: number): Promise<void> { |
no test coverage detected