Skip to content

Commit

Permalink
Merge pull request #489 from xabbuh/patch-1
Browse files Browse the repository at this point in the history
set logger on the connection wrapper only
  • Loading branch information
B-Galati authored Feb 4, 2019
2 parents f12228d + 041bf60 commit 746a5c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Client/Predis/Connection/ConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function create($parameters)
if (null !== $this->wrapper) {
$wrapper = $this->wrapper;
$connection = new $wrapper($connection);
$connection->setLogger($this->logger);
}
$connection->setLogger($this->logger);
}

return $connection;
Expand Down
4 changes: 1 addition & 3 deletions Tests/Profiler/Storage/RedisProfilerStorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,7 @@ public function testRetrieveByUrl()

public function testStoreTime()
{
if (version_compare(phpversion('redis'), '4.0.0') >= 0) {
$this->markTestSkipped('This test cannot be executed on Redis extension version ' . phpversion('redis'));
}
$this->markTestSkipped('This test is inherently unreliable as it depends on the execution and order of other tests');

$dt = new \DateTime('now');
$start = $dt->getTimestamp();
Expand Down

0 comments on commit 746a5c2

Please sign in to comment.