@get-snappy/cli 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -853,10 +853,10 @@ async function runSnapshotRun(config, deps) {
|
|
|
853
853
|
throw new Error(`Test command failed with exit code ${testExitCode}`);
|
|
854
854
|
}
|
|
855
855
|
console.log('Draining browser and upload pools...');
|
|
856
|
-
await withTimeout(
|
|
857
|
-
|
|
858
|
-
uploadPool.drain()
|
|
859
|
-
|
|
856
|
+
await withTimeout((async ()=>{
|
|
857
|
+
await Promise.all(Array.from(browserPools.values()).map((pool)=>pool.drain()));
|
|
858
|
+
await uploadPool.drain();
|
|
859
|
+
})(), drainTimeoutMs);
|
|
860
860
|
console.log('All pools drained successfully');
|
|
861
861
|
if (config.parallel) console.log('Parallel mode: skipping sendComplete (finalizeBuild will handle it)');
|
|
862
862
|
else {
|