From dfdfaa4ed56fe4c52e80eca836d59d46079a00a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20Sim=C3=A3o?= Date: Sun, 31 Dec 2023 11:48:52 -0300 Subject: [PATCH] Increase number of retries on tests --- tests/Integration/Helper.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Integration/Helper.php b/tests/Integration/Helper.php index 2dccedb9..873c2d7e 100644 --- a/tests/Integration/Helper.php +++ b/tests/Integration/Helper.php @@ -3,6 +3,7 @@ namespace Notion\Test\Integration; use Exception; +use Notion\Configuration; use Notion\Notion; use Notion\Pages\Page; use Notion\Pages\PageParent; @@ -16,7 +17,10 @@ public static function client(): Notion throw new Exception("Notion token is required to run integration tests."); } - return Notion::create($token); + $config = Configuration::create($token) + ->enableRetryOnConflict(10); + + return Notion::createFromConfig($config); } public static function testPageId(): string