File test-watch-mode-timeout.patch of Package nodejs22

Index: node-v22.21.1/test/sequential/test-watch-mode.mjs
===================================================================
--- node-v22.21.1.orig/test/sequential/test-watch-mode.mjs
+++ node-v22.21.1/test/sequential/test-watch-mode.mjs
@@ -73,7 +73,7 @@ function runInBackground({ args = [], op
       future.resolve();
       return { stdout, stderr };
     },
-    restart(timeout = 1000) {
+    restart(timeout = 3500) {
       if (!child) {
         run();
       }
@@ -161,7 +161,7 @@ async function failWriteSucceed({ file,
 
 tmpdir.refresh();
 
-describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 60_000 }, () => {
+describe('watch mode', { concurrency: !process.env.TEST_PARALLEL, timeout: 180_000 }, () => {
   it('should watch changes to a file', async () => {
     const file = createTmpFile();
     const { stderr, stdout } = await runWriteSucceed({ file, watchedFile: file, watchFlag: '--watch=true', options: {
openSUSE Build Service is sponsored by