From 0aab3c2027d54fc1ba834ab73fd53328952b7a1b Mon Sep 17 00:00:00 2001 From: Simponic Date: Thu, 29 Dec 2022 17:49:42 -0700 Subject: Make tests pass, rename jail threshold --- test/auth/password_test.exs | 3 ++- test/auth/pubkey_test.exs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test/auth') diff --git a/test/auth/password_test.exs b/test/auth/password_test.exs index 5e1b1d8..8c93ea9 100644 --- a/test/auth/password_test.exs +++ b/test/auth/password_test.exs @@ -5,7 +5,8 @@ defmodule Chessh.Auth.PasswordAuthenticatorTest do @valid_user %{username: "logan", password: "password"} setup_all do - :ok = Ecto.Adapters.SQL.Sandbox.checkout(Chessh.Repo) + Ecto.Adapters.SQL.Sandbox.checkout(Repo) + Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()}) {:ok, _user} = Repo.insert(Player.registration_changeset(%Player{}, @valid_user)) diff --git a/test/auth/pubkey_test.exs b/test/auth/pubkey_test.exs index d8236e3..da2518b 100644 --- a/test/auth/pubkey_test.exs +++ b/test/auth/pubkey_test.exs @@ -9,7 +9,8 @@ defmodule Chessh.Auth.PublicKeyAuthenticatorTest do } setup_all do - :ok = Ecto.Adapters.SQL.Sandbox.checkout(Chessh.Repo) + Ecto.Adapters.SQL.Sandbox.checkout(Repo) + Ecto.Adapters.SQL.Sandbox.mode(Repo, {:shared, self()}) {:ok, player} = Repo.insert(Player.registration_changeset(%Player{}, @valid_user)) -- cgit v1.2.3-70-g09d2