Skip to content

Commit

Permalink
Fixed test and remove pytest.mark.xfail for test_exc_tb (apache#23650)
Browse files Browse the repository at this point in the history
  • Loading branch information
subkanthi authored May 11, 2022
1 parent 93a16c3 commit e16eca2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/utils/log/test_secrets_masker.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def test_exception_not_raised(self, logger, caplog):
"""
)

@pytest.mark.xfail(reason="Cannot filter secrets in traceback source")
def test_exc_tb(self, logger, caplog):
"""
Show it is not possible to filter secrets in the source.
Expand Down Expand Up @@ -142,7 +141,7 @@ def test_exc_tb(self, logger, caplog):
ERROR Err
Traceback (most recent call last):
File ".../test_secrets_masker.py", line {line}, in test_exc_tb
raise RuntimeError("Cannot connect to user:***)
raise RuntimeError("Cannot connect to user:password")
RuntimeError: Cannot connect to user:***
"""
)
Expand Down

0 comments on commit e16eca2

Please sign in to comment.