Skip to content

Commit d9b5581

Browse files
committed
AC-9562: 2.4.7-beta202-Composer Integration Test Failures
- Fix min_time_between_password_reset_requests being persisted to DB without being removed after the test finishes
1 parent 824661b commit d9b5581

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/ForgotPasswordPostTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
use Magento\Framework\App\Config\ScopeConfigInterface;
1616
use Magento\Framework\App\Http;
1717
use Magento\Framework\App\Request\Http as HttpRequest;
18+
use Magento\Framework\Exception\AlreadyExistsException;
19+
use Magento\Framework\Exception\AuthenticationException;
1820
use Magento\Framework\Exception\NoSuchEntityException;
1921
use Magento\Framework\Intl\DateTimeFactory;
2022
use Magento\Framework\Math\Random;
@@ -528,7 +530,6 @@ private function clearCookieMessagesList(): void
528530
/**
529531
* Test to enable password change frequency limit for customer
530532
*
531-
* @magentoDbIsolation disabled
532533
* @magentoConfigFixture current_store customer/password/min_time_between_password_reset_requests 0
533534
* @magentoConfigFixture current_store customer/captcha/enable 0
534535
* @magentoDataFixture Magento/Customer/_files/customer.php
@@ -556,7 +557,7 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
556557
// Updating the limit to greater than 0
557558
$this->resourceConfig->saveConfig(
558559
'customer/password/min_time_between_password_reset_requests',
559-
2,
560+
1,
560561
ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
561562
0
562563
);
@@ -577,8 +578,8 @@ public function testEnablePasswordChangeFrequencyLimitForCustomer(): void
577578
MessageInterface::TYPE_ERROR
578579
);
579580

580-
// Wait for 2 minutes before resetting password
581-
sleep(120);
581+
// Wait for 1 minute before resetting password
582+
sleep(60);
582583

583584
// Clicking on the forgot password link
584585
$this->getRequest()->setPostValue('email', $email);

0 commit comments

Comments
 (0)