Skip to content

Commit

Permalink
Merge pull request #555 from GatherPress/increase-sleep
Browse files Browse the repository at this point in the history
Make sleep a full second so database has a chance to update.
  • Loading branch information
mauteri authored Feb 19, 2024
2 parents 3dcb9c5 + a5b0d98 commit e44a2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/php/includes/core/classes/class-test-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function test_check_waiting_list(): void {
$rsvp->save( $user_1_id, 'not_attending' );

// Give it a slight delay to move member from waiting_list to attending (w/o test sometimes fails).
sleep( .1 );
sleep( 1 );

$this->assertSame( 'attending', $rsvp->get( $user_3_id )['status'], 'Failed to asser user 3 is on attending.' );
$this->assertSame( 0, $rsvp->check_waiting_list(), 'Failed to assert expected waiting list value.' );
Expand Down

0 comments on commit e44a2b6

Please sign in to comment.