Răsfoiți Sursa

[web] decrease concurrency for thread-loader when running tests (#23567)

GitOrigin-RevId: 4aac1bf478af8a12c96765eafd4adfbaaf8b4a22
Jakob Ackermann 1 an în urmă
părinte
comite
6bea6a887d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      services/web/webpack.config.js

+ 1 - 1
services/web/webpack.config.js

@@ -185,7 +185,7 @@ module.exports = {
               // bring up more workers after they timed out
               poolRespawn: true,
               // limit concurrency (one per entrypoint and let the small includes queue up)
-              workers: 6,
+              workers: process.env.NODE_ENV === 'test' ? 1 : 6,
             },
           },
           // Compiles the Less syntax to CSS