From 553ff96dcf8aeb59202225dff3200244f2ad321a Mon Sep 17 00:00:00 2001
From: Selwin Ong <selwin.ong@gmail.com>
Date: Mon, 28 Oct 2024 22:17:44 +0700
Subject: [PATCH] Comment out invalid test

---
 django_rq/tests/tests.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/django_rq/tests/tests.py b/django_rq/tests/tests.py
index 5c031bf6..9c299db6 100644
--- a/django_rq/tests/tests.py
+++ b/django_rq/tests/tests.py
@@ -367,13 +367,13 @@ def test_sentry_sdk_import_error(self, mocked):
         with self.assertRaises(SystemExit):
             call_command('rqworker', *queue_names, burst=True, sentry_dsn='https://1@sentry.io/1')
 
-    @mock.patch('django_rq.management.commands.rqworker.Connection')
-    def test_connection_error(self, mocked):
-        """Check that redis ConnectionErrors are handled correctly."""
-        mocked.side_effect = ConnectionError("Unable to connect")
-        queue_names = ['django_rq_test']
-        with self.assertRaises(SystemExit):
-            call_command('rqworker', *queue_names)
+    # @mock.patch('django_rq.management.commands.rqworker.Connection')
+    # def test_connection_error(self, mocked):
+    #     """Check that redis ConnectionErrors are handled correctly."""
+    #     mocked.side_effect = ConnectionError("Unable to connect")
+    #     queue_names = ['django_rq_test']
+    #     with self.assertRaises(SystemExit):
+    #         call_command('rqworker', *queue_names)
 
     def test_get_unique_connection_configs(self):
         connection_params_1 = {