Skip to content

Commit

Permalink
fix logstash test error
Browse files Browse the repository at this point in the history
Signed-off-by: constanca <[email protected]>
  • Loading branch information
constanca-m committed May 29, 2024
1 parent e98c561 commit 88bc588
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/shippers/test_logstash.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def test_send_failures(self) -> None:
logstash_shipper.set_replay_handler(replay_handler)
event = deepcopy(_dummy_event)
assert logstash_shipper.send(event) == _EVENT_SENT
replay_handler.assert_called_once_with("logstash", {}, event)
replay_handler.assert_called_once_with(url, {}, event)
with self.subTest("Exceeds max retries, replay handler not set"):
for i in range(_MAX_RETRIES):
responses.put(url=url, status=429)
Expand All @@ -150,7 +150,7 @@ def test_send_failures(self) -> None:
logstash_shipper.set_replay_handler(replay_handler)
event = deepcopy(_dummy_event)
assert logstash_shipper.send(event) == _EVENT_SENT
replay_handler.assert_called_once_with("logstash", {}, event)
replay_handler.assert_called_once_with(url, {}, event)

@responses.activate
def test_flush(self) -> None:
Expand Down

0 comments on commit 88bc588

Please sign in to comment.