From 2177dcc6e8771209f9885257936076a09563fa82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20Caba=C3=A7o?= Date: Mon, 18 Nov 2024 14:15:59 +0000 Subject: [PATCH] stop flakiness --- test/realtime/tenants/migrations_test.exs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/realtime/tenants/migrations_test.exs b/test/realtime/tenants/migrations_test.exs index aa2297379..092feb08a 100644 --- a/test/realtime/tenants/migrations_test.exs +++ b/test/realtime/tenants/migrations_test.exs @@ -28,9 +28,10 @@ defmodule Realtime.Tenants.MigrationsTest do end) end |> Task.await_many() - |> Enum.uniq() + |> MapSet.new() - assert [:ok, {:error, :migration_already_running}] = res + expected = MapSet.new([:ok, {:error, :migration_already_running}]) + assert ^expected = res end end end