Skip to content

Commit

Permalink
Merge pull request #519 from GatherPress/GP-515
Browse files Browse the repository at this point in the history
Added slight delay for occasionally failing test.
  • Loading branch information
mauteri authored Jan 28, 2024
2 parents 74d989f + 1cea029 commit 3d9b678
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/unit/php/includes/core/classes/class-test-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ 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 );

$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 3d9b678

Please sign in to comment.