diff --git a/posthog/test/base.py b/posthog/test/base.py index 1958c630aa33d..e9eca8a4ae992 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -1140,7 +1140,13 @@ def wrapped(self, *args, **kwargs): fn(self, *args, **kwargs) for query in queries: - if "FROM system.columns" not in query: + if not any( + ignore_string not in query + for ignore_string in [ + "FROM system.columns", + "celery:posthog.tasks.tasks.sync_insight_caching_state", + ] + ): self.assertQueryMatchesSnapshot(query) return wrapped