From b628490fb95263b56d3523f48ef5668e882880d2 Mon Sep 17 00:00:00 2001 From: Lorenzo Medici Date: Wed, 4 Dec 2024 10:27:23 +0200 Subject: [PATCH] Corrected test using mocked socket --- tests/test_coordinated_workers/test_worker.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_coordinated_workers/test_worker.py b/tests/test_coordinated_workers/test_worker.py index 42f6b6d..6f60dc5 100644 --- a/tests/test_coordinated_workers/test_worker.py +++ b/tests/test_coordinated_workers/test_worker.py @@ -794,8 +794,7 @@ def test_invalid_url(mock_socket): ) # AND ClusterRequirer is passed an invalid url - mock_socket = mock_socket.return_value - mock_socket = "?invalid-url[]" + mock_socket.return_value = "http://www.invalid-]url.com" # IF the charm executes any event # THEN the charm raises an error with the appropriate cause