Skip to content

Commit 59b9a4e

Browse files
committed
Fix test
1 parent 5d0d423 commit 59b9a4e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

features/cron-event.feature

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,9 @@ Feature: Manage WP Cron events
266266
"""
267267

268268
# After the transient is cleared, the run should proceed normally.
269-
When I run `wp transient delete doing_cron`
269+
When I run `wp eval 'delete_transient( "doing_cron" );'`
270270
And I try `wp cron event run --due-now`
271271
Then STDOUT should contain:
272272
"""
273273
Executed the cron event 'wp_cli_test_event_lock'
274274
"""
275-
And STDOUT should contain:
276-
"""
277-
Executed a total of 1 cron event
278-
"""

0 commit comments

Comments
 (0)