From 986139047057f3e1388283fbf97d7e06f703b497 Mon Sep 17 00:00:00 2001 From: Tofandel Date: Wed, 20 Nov 2024 19:09:10 +0100 Subject: [PATCH] Fix failing test --- tests/integration/Models/StandaloneSlugTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/Models/StandaloneSlugTest.php b/tests/integration/Models/StandaloneSlugTest.php index 33b922269..ced0b4899 100644 --- a/tests/integration/Models/StandaloneSlugTest.php +++ b/tests/integration/Models/StandaloneSlugTest.php @@ -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);