Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
v0idpwn committed Jun 21, 2023
1 parent 0eee8a7 commit e779c5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 1 addition & 0 deletions integration_test/cases/repo.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ defmodule Ecto.Integration.RepoTest do

alias Ecto.Integration.Post
alias Ecto.Integration.Order
alias Ecto.Integration.Item
alias Ecto.Integration.User
alias Ecto.Integration.Comment
alias Ecto.Integration.Permalink
Expand Down
4 changes: 2 additions & 2 deletions test/ecto/query/planner_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ defmodule Ecto.Query.PlannerTest do

test "plan: generates a cache key" do
{_query, _cast_params, _dump_params, key} = plan(from(Post, []))
assert key == [:all, {:from, {"posts", Post, 111065921, "my_prefix"}, []}]
assert key == [:all, {:from, {"posts", Post, 23210922, "my_prefix"}, []}]

query =
from(
Expand All @@ -525,7 +525,7 @@ defmodule Ecto.Query.PlannerTest do
{:limit, {true, 1}},
{:where, [{:and, {:is_nil, [], [nil]}}, {:or, {:is_nil, [], [nil]}}]},
{:join, [{:inner, {"comments", Comment, 38292156, "world"}, true, ["join hint"]}]},
{:from, {"posts", Post, 111065921, "hello"}, ["hint"]},
{:from, {"posts", Post, 23210922, "hello"}, ["hint"]},
{:select, 1}]
end

Expand Down
9 changes: 0 additions & 9 deletions test/ecto/repo_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@ defmodule Ecto.RepoTest do
end
end

defmodule MySchemaVirtualEmbed do
use Ecto.Schema

schema "my_schema" do
field :x, :string
embeds_one :virtual_embed, MyEmbed, virtual: true
end
end

defmodule MySchemaNoPK do
use Ecto.Schema

Expand Down

0 comments on commit e779c5c

Please sign in to comment.