Skip to content

Commit c822a0b

Browse files
committed
MAGETWO-35777: Random failures of Magento\Log\Test\Unit\Model\VisitorTest
- adding delta of 5s for assertions related to time()
1 parent dfd7e03 commit c822a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Log/Test/Unit/Model/VisitorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ public function testGetUrl()
122122
public function testGetFirstVisitAt()
123123
{
124124
$time = time();
125-
$this->assertEquals($time, $this->visitor->getFirstVisitAt());
125+
$this->assertEquals($time, $this->visitor->getFirstVisitAt(), '', 5);
126126
}
127127

128128
public function testGetLastVisitAt()
129129
{
130130
$time = time();
131-
$this->assertEquals($time, $this->visitor->getLastVisitAt());
131+
$this->assertEquals($time, $this->visitor->getLastVisitAt(), '', 5);
132132
}
133133

134134
public function testLogNewVisitor()

0 commit comments

Comments
 (0)