Skip to content

Commit

Permalink
Corrected test using mocked socket
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo-medici committed Dec 4, 2024
1 parent 6ea1f26 commit b628490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_coordinated_workers/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b628490

Please sign in to comment.