Skip to content

Commit e7ccf4c

Browse files
Copilotswissspidy
andcommitted
Fix test: specify event names to avoid running WordPress core events
The test was failing because --due-now was executing all due events including WordPress core events like wp_version_check, wp_update_plugins, etc. Changed to run specific test events by name to get predictable results. Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 6b8dc35 commit e7ccf4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/cron-event.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Feature: Manage WP Cron events
184184
Success: Scheduled event with hook 'wp_cli_network_test_site2'
185185
"""
186186

187-
When I run `wp cron event run --due-now --network`
187+
When I run `wp cron event run wp_cli_network_test wp_cli_network_test_site2 --due-now --network`
188188
Then STDOUT should contain:
189189
"""
190190
Executed the cron event 'wp_cli_network_test'

0 commit comments

Comments
 (0)