Skip to content

Commit cad4e99

Browse files
authored
Merge pull request #111 from wp-cli/try/fix-tests
2 parents 676e32f + 96824c0 commit cad4e99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

features/cron.feature

+7-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,13 @@ Feature: Manage WP-Cron events and schedules
255255
"""
256256
Error:
257257
"""
258-
And the {RUN_DIR}/server.log file should not exist
258+
259+
# Normally we would simply check for the log file to not exist. However, when running with Xdebug for code coverage purposes,
260+
# the following warning might be added to the log file:
261+
# PHP Warning: JIT is incompatible with third party extensions that override zend_execute_ex(). JIT disabled. in Unknown on line 0
262+
# This workaround checks for any other possible entries in the log file.
263+
When I run `awk '!/JIT/' {RUN_DIR}/server.log 2>/dev/null || true`
264+
Then STDOUT should be empty
259265

260266
Scenario: Run multiple cron events
261267
When I try `wp cron event run`

0 commit comments

Comments
 (0)