Skip to content

Failing alternate cron test #122

@swissspidy

Description

@swissspidy

The following test is failing since yesterday:

001 Scenario: Don't trigger cron when ALTERNATE_WP_CRON is defined # features/cron.feature:357
      And STDERR should contain:                                   # features/cron.feature:386
        $ wp cron test
        
        Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
        Error: WP-Cron spawn returned HTTP status code: 404 Not Found
        cwd: /tmp/wp-cli-test-run--69436005091a42.79513725/
        run time: 0.38838696479797
        exit status: 1
        
        --- Expected
        +++ Actual
        @@ @@
        -Error: WP-Cron spawn returned HTTP status code: 403 Forbidden
        +Warning: The ALTERNATE_WP_CRON constant is set to true. WP-Cron spawning is not asynchronous.
        +Error: WP-Cron spawn returned HTTP status code: 404 Not Found
         (Exception)

Example: https://github.com/wp-cli/cron-command/actions/runs/20323320253/job/58383551450#step:10:58

No idea why, doesn't seem like something has changed.

But when I look at this test, it seems like it just requests https://example.com/wp-cron.php?doing_wp_cron= instead of a local server... Of course that will result in a 404.

The 403 expectation was added in #119, but that was quite flawed... From what I can see the test should still simply expect "WP-Cron spawning is working as expected."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions