Skip to content

Commit

Permalink
Fix pesky lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Jan 28, 2025
1 parent 636612c commit 28b4b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/search/includes/classes/test-class-queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,14 +743,15 @@ public function test_ratelimit_indexing_cache_count_should_not_exists_if_early_r
* Ensure that the queue isn't populated if ratelimiting isn't triggered
*/
public function test_ratelimit_indexing_queue_should_be_empty_if_no_ratelimiting() {
$this->queue::$max_indexing_op_count = PHP_INT_MAX; // Ensure ratelimiting is disabled
$post_ids = range( 10, 20 );

global $wpdb;

$table_name = $this->queue->schema->get_table_name();

$this->add_posts_to_queue( range( 3, 9 ) );

$this->queue::$max_indexing_op_count = PHP_INT_MAX; // Ensure ratelimiting is disabled

$this->queue->ratelimit_indexing( true, $this->sync_manager, 'post' );

$this->assertEquals( 7, wp_cache_get( $this->queue::INDEX_COUNT_CACHE_KEY, $this->queue::INDEX_COUNT_CACHE_GROUP ), 'indexing ops count should be 7' );
Expand All @@ -768,7 +769,6 @@ public function test_ratelimit_indexing_queue_should_be_empty_if_no_ratelimiting

$this->sync_manager->reset_sync_queue();

$post_ids = range( 10, 20 );
$this->add_posts_to_queue( $post_ids );

$this->queue->ratelimit_indexing( true, $this->sync_manager, 'post' );
Expand Down

0 comments on commit 28b4b4f

Please sign in to comment.