Skip to content

Commit d0075fa

Browse files
authored
Tests: Use different port numbers between scenarios (#139)
1 parent efdfb66 commit d0075fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/cron.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ Feature: Manage WP-Cron events and schedules
375375
error_log = {RUN_DIR}/server.log
376376
log_errors = on
377377
"""
378-
And I launch in the background `wp server --host=localhost --port=8080 --config=php.ini`
378+
And I launch in the background `wp server --host=localhost --port=8081 --config=php.ini`
379379
And a wp-content/mu-plugins/set_cron_site_url.php file:
380380
"""
381381
<?php
382382
add_filter( 'cron_request', static function ( $cron_request_array ) {
383-
$cron_request_array['url'] = str_replace( site_url(), 'http://localhost:8080', $cron_request_array['url'] );
383+
$cron_request_array['url'] = str_replace( site_url(), 'http://localhost:8081', $cron_request_array['url'] );
384384
$cron_request_array['args']['sslverify'] = false;
385385
return $cron_request_array;
386386
} );

0 commit comments

Comments
 (0)