From 932a0d3f57eec3409bac3b0002530d9565e5ceba Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 18 Jun 2024 15:04:16 +1000 Subject: [PATCH] Handle github actions quirks --- app/Http/Requests/Payment/StorePaymentRequest.php | 1 - tests/Pdf/PdfGenerationTest.php | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Http/Requests/Payment/StorePaymentRequest.php b/app/Http/Requests/Payment/StorePaymentRequest.php index ee25c509e629..ea28645765f6 100644 --- a/app/Http/Requests/Payment/StorePaymentRequest.php +++ b/app/Http/Requests/Payment/StorePaymentRequest.php @@ -79,7 +79,6 @@ class StorePaymentRequest extends Request /** @var \App\Models\User $user */ $user = auth()->user(); - if(\Illuminate\Support\Facades\Cache::has($this->ip()."|".$this->input('amount', 0)."|".$this->input('client_id', '')."|".$user->company()->company_key)) throw new DuplicatePaymentException('Duplicate request.', 429); diff --git a/tests/Pdf/PdfGenerationTest.php b/tests/Pdf/PdfGenerationTest.php index 22fcacf01673..ea2095e225d9 100644 --- a/tests/Pdf/PdfGenerationTest.php +++ b/tests/Pdf/PdfGenerationTest.php @@ -24,6 +24,11 @@ class PdfGenerationTest extends TestCase protected function setUp(): void { parent::setUp(); + +if (config('ninja.testvars.travis') !== false) { + $this->markTestSkipped('Skip test for Travis'); +} + } public function testPdfGeneration()