diff --git a/lib/tests/session_redis_test.php b/lib/tests/session_redis_test.php index 45a17ed15f5e6..8c91a612af211 100644 --- a/lib/tests/session_redis_test.php +++ b/lib/tests/session_redis_test.php @@ -283,7 +283,7 @@ public function test_exception_when_connection_attempts_exceeded() { $actual = $e->getMessage(); } - $expected = 'Failed to connect (try 5 out of 5) to redis at 127.0.0.1:111111'; + $expected = 'Failed to connect (try 5 out of 5) to redis at ' . TEST_SESSION_REDIS_HOST . ':111111'; $this->assertDebuggingCalledCount(5); $this->assertContains($expected, $actual); }