Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rychlewski authored and Greg Rychlewski committed Jul 1, 2024
1 parent f5c8b29 commit 94f85ad
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/transaction_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,7 @@ defmodule TransactionTest do
assert transaction(
fn conn ->
assert {:error, %Postgrex.Error{postgres: %{code: :unique_violation}}} =
P.query(conn, "insert into uniques values (1), (1);", [],
mode: :savepoint
)
P.query(conn, "insert into uniques values (1), (1);", [], mode: :savepoint)

assert {:ok, %Postgrex.Result{rows: [[42]]}} = P.query(conn, "SELECT 42", [])
:hi
Expand Down Expand Up @@ -595,9 +593,7 @@ defmodule TransactionTest do
assert transaction(
fn conn ->
assert {:error, %Postgrex.Error{postgres: %{code: :unique_violation}}} =
P.query(conn, "insert into uniques values (1), (1);", [],
mode: :savepoint
)
P.query(conn, "insert into uniques values (1), (1);", [], mode: :savepoint)

assert {:ok, %Postgrex.Result{rows: [[42]]}} = P.query(conn, "SELECT 42", [])
:hi
Expand Down

0 comments on commit 94f85ad

Please sign in to comment.