Skip to content

Commit

Permalink
Failing test
Browse files Browse the repository at this point in the history
Update clear_db_each_test.exs
  • Loading branch information
jauggy committed Jun 9, 2024
1 parent c926fcc commit e5ce4c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/teiserver/common/clear_db_each_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
defmodule Teiserver.Common.ClearDbEachTest do
@moduledoc """
Tests that the sandbox db is cleared after each test
"""
use Teiserver.DataCase, async: true

test "Sandbox test 1" do

Check failure on line 7 in test/teiserver/common/clear_db_each_test.exs

View workflow job for this annotation

GitHub Actions / Build and test

test Sandbox test 1 (Teiserver.Common.ClearDbEachTest)
name = "ClearDbEachTestUser"
user = Teiserver.TeiserverTestLib.new_user(name)
result = Teiserver.CacheUser.get_user_by_id(user.id)
assert result[:name] == name
end

test "Sandbox test 2" do
name = "ClearDbEachTestUser"
user = Teiserver.TeiserverTestLib.new_user(name)
result = Teiserver.CacheUser.get_user_by_id(user.id)
assert result[:name] == name
end
end

0 comments on commit e5ce4c5

Please sign in to comment.