Skip to content

Commit

Permalink
fix(ex/test/conn-case): remove redundant User.upsert's
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Nov 7, 2024
1 parent d6093ab commit 3fddf0c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/support/conn_case.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ defmodule SkateWeb.ConnCase do
{conn, user} =
cond do
tags[:authenticated] ->
User.upsert(username, email)

conn =
Phoenix.ConnTest.build_conn()
|> init_test_session(%{})
Expand All @@ -55,8 +53,6 @@ defmodule SkateWeb.ConnCase do
{conn, user}

tags[:authenticated_admin] ->
User.upsert(username, email)

conn =
Phoenix.ConnTest.build_conn()
|> init_test_session(%{})
Expand All @@ -67,8 +63,6 @@ defmodule SkateWeb.ConnCase do
{conn, user}

tags[:authenticated_dispatcher] ->
User.upsert(username, email)

conn =
Phoenix.ConnTest.build_conn()
|> init_test_session(%{})
Expand Down

0 comments on commit 3fddf0c

Please sign in to comment.