diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 303a7ed306c1cb613665da518ec7195103648944..24e3d30ea1ffb7f5da9975e44db44195bd66b8fb 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,9 +3,3 @@ include:
   - remote: https://git-cdn.e15r.co/gitlab/ci/wordpress/-/raw/main/plugins/templates/cache.yml
   - remote: https://git.ethitter.com/gitlab/ci/wordpress/-/raw/add/redis/plugins/templates/before-script-redis.yml
   - remote: https://git.ethitter.com/gitlab/ci/wordpress/-/raw/add/redis/plugins/templates/matrix-redis.yml
-
-connect:
-  # Connect to PostgreSQL database as user postgres, without password
-  image: redis
-  script:
-  - redis-cli -h redis PING
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index f838a17324fb9d11ace8eb00e2902b3cd4b8acfd..9807b5379a5503621b3b743ff7323206145647ef 100755
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -5,6 +5,10 @@
  * @package WP_Revisions_Control
  */
 
+if ( ! defined( 'WP_REDIS_USER_SESSION_HOST' ) ) {
+	define( 'WP_REDIS_USER_SESSION_HOST', 'redis' );
+}
+
 $redis_user_session_storage = getenv( 'WP_TESTS_DIR' );
 
 if ( ! $redis_user_session_storage ) {