From 118563bb9bef1602d8a2f5032cc75a8dceb1182b Mon Sep 17 00:00:00 2001 From: martosaur Date: Tue, 30 Sep 2025 21:33:40 -0700 Subject: [PATCH] Make tests async on 1.18+ --- test/posthog/feature_flags_test.exs | 5 +++-- test/posthog_test.exs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/posthog/feature_flags_test.exs b/test/posthog/feature_flags_test.exs index 057217e..d55e400 100644 --- a/test/posthog/feature_flags_test.exs +++ b/test/posthog/feature_flags_test.exs @@ -1,6 +1,7 @@ defmodule PostHog.FeatureFlagsTest do - # group only works for Elixir 1.18, can't make it async until then - use PostHog.Case, async: false, group: PostHog + use PostHog.Case, + async: Version.match?(System.version(), ">= 1.18.0"), + group: PostHog @moduletag config: [supervisor_name: PostHog] diff --git a/test/posthog_test.exs b/test/posthog_test.exs index ce83d91..0786974 100644 --- a/test/posthog_test.exs +++ b/test/posthog_test.exs @@ -1,6 +1,7 @@ defmodule PostHogTest do - # group only works for Elixir 1.18, can't make it async until then - use PostHog.Case, async: false, group: PostHog + use PostHog.Case, + async: Version.match?(System.version(), ">= 1.18.0"), + group: PostHog @moduletag config: [supervisor_name: PostHog]