Skip to content

Commit 0862f33

Browse files
committed
Fixing flakey test that goes beyond midnight UTC.
1 parent b8a605a commit 0862f33

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/phpunit/unit-tests/models/class-llms-test-model-llms-order.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,8 @@ public function test_get_next_payment_due_date_single() {
900900
*/
901901
public function test_get_next_payment_due_date_recurring() {
902902

903-
$original_time = current_time( 'Y-m-d H:i:s' );
903+
// Set time to early in the day since we're scheduling three of them, and it'll start to go beyond a single day.
904+
$original_time = current_time( 'Y-m-d ' ) . ' 01:00:00';
904905

905906
$plan = $this->get_plan();
906907
foreach ( array( 'day', 'week', 'month', 'year' ) as $period ) {

0 commit comments

Comments
 (0)