Skip to content

Commit

Permalink
fix: Truncate only if table exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Nov 7, 2023
1 parent 5f8d5ba commit 2ed879c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/temporal/tests/batch_exports/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ async def truncate_events(clickhouse_client):
This is useful if during the test setup we insert a lot of events we wish to clean-up.
"""
yield
await clickhouse_client.execute_query("TRUNCATE TABLE `sharded_events`")
await clickhouse_client.execute_query("TRUNCATE TABLE IF EXISTS `sharded_events`")

0 comments on commit 2ed879c

Please sign in to comment.