make tests async
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
shibao 2023-04-14 23:48:50 -04:00
parent 334d841d57
commit 8cb6068b85
14 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@ defmodule Cannery.InvitesTest do
This module tests the Cannery.Accounts.Invites context This module tests the Cannery.Accounts.Invites context
""" """
use Cannery.DataCase use Cannery.DataCase, async: true
alias Cannery.Accounts alias Cannery.Accounts
alias Cannery.Accounts.{Invite, Invites} alias Cannery.Accounts.{Invite, Invites}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.AccountsTest do
This tests the accounts module This tests the accounts module
""" """
use Cannery.DataCase use Cannery.DataCase, async: true
alias Cannery.Accounts alias Cannery.Accounts
alias Cannery.Accounts.{Invites, User, UserToken} alias Cannery.Accounts.{Invites, User, UserToken}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.ActivityLogTest do
This module tests the ActivityLog context This module tests the ActivityLog context
""" """
use Cannery.DataCase use Cannery.DataCase, async: true
import Cannery.Fixtures import Cannery.Fixtures
alias Cannery.{ActivityLog, ActivityLog.ShotRecord, Ammo} alias Cannery.{ActivityLog, ActivityLog.ShotRecord, Ammo}

View File

@ -3,7 +3,7 @@ defmodule Cannery.AmmoTest do
Tests the Ammo context Tests the Ammo context
""" """
use Cannery.DataCase use Cannery.DataCase, async: true
alias Cannery.{Ammo, Ammo.Pack, Ammo.Type, Containers} alias Cannery.{Ammo, Ammo.Pack, Ammo.Type, Containers}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule Cannery.ContainersTest do
Tests for the Containers context Tests for the Containers context
""" """
use Cannery.DataCase use Cannery.DataCase, async: true
alias Cannery.{Containers, Containers.Container, Containers.Tag} alias Cannery.{Containers, Containers.Container, Containers.Tag}
alias Ecto.Changeset alias Ecto.Changeset

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.ExportControllerTest do
Tests the export function Tests the export function
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
alias Cannery.{ActivityLog, Ammo, Containers, Repo} alias Cannery.{ActivityLog, Ammo, Containers, Repo}
@moduletag :export_controller_test @moduletag :export_controller_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.HomeControllerTest do
Tests the home page Tests the home page
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
@moduletag :home_controller_test @moduletag :home_controller_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.ContainerLiveTest do
Tests the containers liveviews Tests the containers liveviews
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
alias Cannery.Containers alias Cannery.Containers

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.HomeLiveTest do
Tests the home page Tests the home page
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
@moduletag :home_live_test @moduletag :home_live_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.InviteLiveTest do
Tests the invite liveview Tests the invite liveview
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
alias Cannery.Accounts.Invites alias Cannery.Accounts.Invites

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.PackLiveTest do
Tests pack live pages Tests pack live pages
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
alias Cannery.{Ammo, Repo} alias Cannery.{Ammo, Repo}

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.RangeLiveTest do
This module tests the Range LiveViews This module tests the Range LiveViews
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
import Cannery.Fixtures import Cannery.Fixtures

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.TagLiveTest do
Tests the tag liveviews Tests the tag liveviews
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
@moduletag :tag_live_test @moduletag :tag_live_test

View File

@ -3,7 +3,7 @@ defmodule CanneryWeb.TypeLiveTest do
Tests the type liveview Tests the type liveview
""" """
use CanneryWeb.ConnCase use CanneryWeb.ConnCase, async: true
import Phoenix.LiveViewTest import Phoenix.LiveViewTest
alias Cannery.{Ammo, Repo} alias Cannery.{Ammo, Repo}