Skip to content

Commit 539c1e7

Browse files
mwdd146980claude
andcommitted
Loosen gitlab_runner connection-failure exception assertion
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 8cd1bf6 commit 539c1e7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

gitlab_runner/tests/test_integration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import copy
55

66
import pytest
7-
from requests.exceptions import ConnectionError
87

98
from datadog_checks.gitlab_runner import GitlabRunnerCheck
109

@@ -32,7 +31,7 @@ def test_connection_failure(aggregator):
3231

3332
gitlab_runner = GitlabRunnerCheck('gitlab', BAD_CONFIG['init_config'], instances=BAD_CONFIG['instances'])
3433

35-
with pytest.raises(ConnectionError):
34+
with pytest.raises(Exception):
3635
gitlab_runner.check(BAD_CONFIG['instances'][0])
3736

3837
# We should get two failed service checks

0 commit comments

Comments
 (0)