add delays for payments post

This commit is contained in:
David Bomba 2024-06-17 21:09:34 +10:00
parent e469bee620
commit a25368986f

View File

@ -220,6 +220,7 @@ class MultiPaymentDeleteTest extends TestCase
$this->assertEquals(162, $invoice->client->fresh()->balance); $this->assertEquals(162, $invoice->client->fresh()->balance);
$this->assertEquals(163, $invoice->client->fresh()->paid_to_date); $this->assertEquals(163, $invoice->client->fresh()->paid_to_date);
usleep(800);
// Pay 162 again and create payment #3 // Pay 162 again and create payment #3
$data = [ $data = [
@ -233,6 +234,7 @@ class MultiPaymentDeleteTest extends TestCase
], ],
], ],
'date' => '2019/12/12', 'date' => '2019/12/12',
'idempotency_key' => md5(time()),
]; ];
$response = $this->withHeaders([ $response = $this->withHeaders([