Skip to content

Commit 3e01925

Browse files
committed
fix tests
1 parent a432b12 commit 3e01925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Cache/Tests/Adapter/RedisAdapterSentinelTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function setUpBeforeClass(): void
3939
public function testInvalidDSNHasBothClusterAndSentinel()
4040
{
4141
$this->expectException(InvalidArgumentException::class);
42-
$this->expectExceptionMessage('Cannot use both "redis_cluster" and "redis_sentinel" at the same time:');
42+
$this->expectExceptionMessage('Cannot use both "redis_cluster" and "redis_sentinel" at the same time.');
4343
$dsn = 'redis:?host[redis1]&host[redis2]&host[redis3]&redis_cluster=1&redis_sentinel=mymaster';
4444
RedisAdapter::createConnection($dsn);
4545
}
@@ -49,7 +49,7 @@ public function testExceptionMessageWhenFailingToRetrieveMasterInformation()
4949
$hosts = getenv('REDIS_SENTINEL_HOSTS');
5050
$dsn = 'redis:?host['.str_replace(' ', ']&host[', $hosts).']';
5151
$this->expectException(InvalidArgumentException::class);
52-
$this->expectExceptionMessage('Failed to retrieve master information from sentinel "invalid-masterset-name" and dsn "'.$dsn.'".');
52+
$this->expectExceptionMessage('Failed to retrieve master information from sentinel "invalid-masterset-name".');
5353
AbstractAdapter::createConnection($dsn, ['redis_sentinel' => 'invalid-masterset-name']);
5454
}
5555
}

0 commit comments

Comments
 (0)