From 840e762f0a4594022cbd371cc4644a2ae6e0456a Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 12 Dec 2023 09:00:34 +0100 Subject: [PATCH 1/2] Add note about test rate limiting --- .github/CONTRIBUTING.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index e5d42bc6..587f4caa 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,4 +10,6 @@ Copy the default file using `cp phpunit.xml.dist phpunit.xml` and add the follow -**Make sure to use your "testing" secret key and not your production secret key.** Please note that due to the fact that actual API requests against Stripe are being made, these tests take a few minutes to run. +**Make sure to use your "testing" secret key and not your production secret key.** Please note that due to the fact that actual API requests against Stripe are being made, these tests take a few minutes to run. + +While running these tests a few times after each other you may run into Stripe's rate limiting for test mode. Unfortunately there's no way around this and the only solution is to wait a bit between running the tests. From adcf01a9491d6c21cdb440e263800f1aaeb1aa11 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 12 Dec 2023 09:00:04 -0600 Subject: [PATCH 2/2] Update CONTRIBUTING.md --- .github/CONTRIBUTING.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 587f4caa..c13cb08d 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -10,6 +10,4 @@ Copy the default file using `cp phpunit.xml.dist phpunit.xml` and add the follow -**Make sure to use your "testing" secret key and not your production secret key.** Please note that due to the fact that actual API requests against Stripe are being made, these tests take a few minutes to run. - -While running these tests a few times after each other you may run into Stripe's rate limiting for test mode. Unfortunately there's no way around this and the only solution is to wait a bit between running the tests. +**Make sure to use your "testing" secret key and not your production secret key.** These tests may take a few minutes to run due to the fact that actual API requests against Stripe are being made. You may also encounter rate limiting errors from Stripe while running these tests. Unfortunately, there is no work around for this except waiting for the rate limit to expire.