Skip to content

Commit

Permalink
test revised with non existing url.
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimcavusoglu committed Jul 16, 2021
1 parent 06e9214 commit 718541b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest

from requests.exceptions import SSLError
from requests.exceptions import ConnectionError

from pigeons import init_logger

Expand Down Expand Up @@ -62,5 +62,5 @@ def test_init_logger_with_malformed_url():
def test_init_logger_non_exist_url():
endpoint = "https://this-is-non-existing-url-1234567890-0987654321.com/api/v2"

with pytest.raises(SSLError):
with pytest.raises(ConnectionError):
init_logger(endpoint=endpoint, log_to_teams=True, tf_capture_flags=[DEFAULT_FLAG], tf_regex=False)

0 comments on commit 718541b

Please sign in to comment.