Skip to content

Commit

Permalink
Make sleep a full second so database has a chance to update.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Feb 18, 2024
1 parent 3dcb9c5 commit a5b0d98
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 a5b0d98

Please sign in to comment.