Skip to content

Commit 9ca010d

Browse files
MAGETWO-85904: Investigate fluctuations of PAT Nightly build
1 parent ea80080 commit 9ca010d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Security/Model/AdminSessionsManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ private function getIntervalBetweenConsecutiveProlongs()
347347
return (float) max(
348348
1,
349349
min(
350-
log((float)$this->securityConfig->getAdminSessionLifetime()),
350+
4 * log((float)$this->securityConfig->getAdminSessionLifetime()),
351351
$this->maxIntervalBetweenConsecutiveProlongs
352352
)
353353
);

dev/tests/integration/testsuite/Magento/Security/Model/Plugin/AuthSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function testProcessProlong()
124124
\Magento\TestFramework\Bootstrap::ADMIN_PASSWORD
125125
);
126126
$sessionId = $this->authSession->getSessionId();
127-
$prolongsDiff = log($this->securityConfig->getAdminSessionLifetime()) + 2; // X from comment above
127+
$prolongsDiff = 4 * log($this->securityConfig->getAdminSessionLifetime()) + 2; // X from comment above
128128
$dateInPast = $this->dateTime->formatDate($this->authSession->getUpdatedAt() - $prolongsDiff);
129129
$this->adminSessionsManager->getCurrentSession()
130130
->setData(

0 commit comments

Comments
 (0)