Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dplewis committed Jun 27, 2024
1 parent 5481d74 commit a3efbf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Parse/ParseQueryRelativeTimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,15 +275,15 @@ public function testLongRelativeTime()
$this->assertEquals(1, $query->count());

$query = new ParseQuery('TestObject');
$query->lessThanRelativeTime('date', '1 year 3 weeks ago');
$this->assertEquals(0, $query->count());
$query->lessThanRelativeTime('date', '1 year 2 weeks ago');
$this->assertEquals(1, $query->count());

$query = new ParseQuery('TestObject');
$query->greaterThanRelativeTime('date', 'in 1 year 3 weeks');
$this->assertEquals(0, $query->count());

$query = new ParseQuery('TestObject');
$query->greaterThanRelativeTime('date', '1 year 3 weeks ago');
$query->greaterThanRelativeTime('date', '1 year 4 weeks ago');
$this->assertEquals(4, $query->count());
}

Expand Down

0 comments on commit a3efbf5

Please sign in to comment.