Skip to content

Commit a7efb68

Browse files
test: fix idempotent close assertion in langfuse bridge test
Agent-Logs-Url: https://github.com/MervinPraison/PraisonAI/sessions/fd08f8d3-78b3-40b2-84b6-02c7bef43a2b Co-authored-by: MervinPraison <454862+MervinPraison@users.noreply.github.com>
1 parent f9bcf0c commit a7efb68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/praisonai/tests/unit/test_langfuse_sink.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def test_bridge_forwards_flush_and_close(self):
495495
sink._client.flush.assert_called_once()
496496

497497
bridge.close()
498-
# close() calls flush, so reset mock first
498+
# close() is idempotent; second call should not flush again
499499
sink._client.flush.reset_mock()
500500
bridge.close()
501-
sink._client.flush.assert_called_once()
501+
sink._client.flush.assert_not_called()

0 commit comments

Comments
 (0)