Skip to content

Commit 1b2b055

Browse files
Copilotswissspidy
andcommitted
Fix alternate cron test to expect 403 error
Co-authored-by: swissspidy <[email protected]>
1 parent 469c202 commit 1b2b055

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

features/cron.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,14 +378,14 @@ Feature: Manage WP-Cron events and schedules
378378
https://example.com
379379
"""
380380

381-
When I run `wp cron test`
382-
Then STDOUT should contain:
381+
When I try `wp cron test`
382+
Then STDERR should contain:
383383
"""
384-
Success: WP-Cron spawning is working as expected.
384+
Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
385385
"""
386386
And STDERR should contain:
387387
"""
388-
Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
388+
Error: WP-Cron spawn returned HTTP status code: 403 Forbidden
389389
"""
390390

391391
Scenario: Listing duplicated cron events

0 commit comments

Comments
 (0)