Skip to content

Commit

Permalink
Merge pull request #18045 from eileenmcnaughton/sleep
Browse files Browse the repository at this point in the history
[Test fix] We might need this to ensure really quick test runs don't fail
  • Loading branch information
eileenmcnaughton authored Aug 3, 2020
2 parents 752d4ee + 2b87073 commit 486e4f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/phpunit/CRM/Core/Payment/AuthorizeNetIPNTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public function testIPNPaymentRecurNoReceipt() {
$contributionRecur = $this->callAPISuccessGetSingle('ContributionRecur', ['id' => $this->_contributionRecurID]);
$processor_id = $contributionRecur['processor_id'];
$this->assertEquals('Pending', CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_Contribution', 'contribution_status_id', $contributionRecur['contribution_status_id']));
// Process the initial one.
// Process the initial one after a second's break to ensure modified date really is later.
sleep(1);
$IPN = new CRM_Core_Payment_AuthorizeNetIPN(
$this->getRecurTransaction(['x_subscription_id' => $processor_id])
);
Expand Down

0 comments on commit 486e4f9

Please sign in to comment.