Skip to content

Commit 0cec3d1

Browse files
Build/Test Tools: Disable process timeout when running PHPUnit tests via Composer.
When running the full test suite locally via `npm run grunt phpunit` or `composer test`, it is not uncommon for the test run to exceed the Composer's default timeout, causing an error in the middle of the test output: {{{ The process "..." exceeded the timeout of 300 seconds. }}} This commit disables the process timeout for the `composer test` command, allowing the test run to complete successfully. Follow-up to [47881], [51016]. Props ironprogrammer, robinwpdeveloper, SergeyBiryukov. Fixes #55919. git-svn-id: https://develop.svn.wordpress.org/trunk@54355 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8bef14f commit 0cec3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"format": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcbf --report=summary,source",
3030
"lint": "@php ./vendor/squizlabs/php_codesniffer/bin/phpcs --report=summary,source",
3131
"lint:errors": "@lint -n",
32-
"test": "@php ./vendor/phpunit/phpunit/phpunit"
32+
"test": [ "Composer\\Config::disableProcessTimeout", "@php ./vendor/phpunit/phpunit/phpunit" ]
3333
}
3434
}

0 commit comments

Comments
 (0)