Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Nov 20, 2024
1 parent 1cec190 commit 9861390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/Models/StandaloneSlugTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ public function testSavingStandaloneSlug(): void
$this->assertEquals(10, count($log));
$this->assertEquals('new-test-author', $author->getSlug('en'));
$this->assertEquals('nouveau-test-auteur', $author->getSlug('fr'));
// All queries combined should take less than 15ms (they usually take a total of 5ms)
$this->assertLessThan(15, array_sum(Arr::pluck($log, 'time')));
// All queries combined should take less than 40ms (they usually take a total of 5ms, allow big range to avoid flaky test)
$this->assertLessThan(40, array_sum(Arr::pluck($log, 'time')));

$author2 = $createAuthor();
$this->assertEquals('test-author-2', $author2->slug);
Expand Down

0 comments on commit 9861390

Please sign in to comment.