Przeglądaj źródła

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

GitOrigin-RevId: 4aac1bf478af8a12c96765eafd4adfbaaf8b4a22
Jakob Ackermann 1 rok temu
rodzic
commit
6bea6a887d
1 zmienionych plików z 1 dodań i 1 usunięć
  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
               // bring up more workers after they timed out
               poolRespawn: true,
               poolRespawn: true,
               // limit concurrency (one per entrypoint and let the small includes queue up)
               // 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
           // Compiles the Less syntax to CSS