Skip to content

Commit

Permalink
Increase number of retries on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mariosimao committed Dec 31, 2023
1 parent 1141e8a commit dfdfaa4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/Integration/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Notion\Test\Integration;

use Exception;
use Notion\Configuration;
use Notion\Notion;
use Notion\Pages\Page;
use Notion\Pages\PageParent;
Expand All @@ -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
Expand Down

0 comments on commit dfdfaa4

Please sign in to comment.