Skip to content

Commit e779c5c

Browse files
committed
Fix tests
1 parent 0eee8a7 commit e779c5c

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

Diff for: integration_test/cases/repo.exs

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ defmodule Ecto.Integration.RepoTest do
66

77
alias Ecto.Integration.Post
88
alias Ecto.Integration.Order
9+
alias Ecto.Integration.Item
910
alias Ecto.Integration.User
1011
alias Ecto.Integration.Comment
1112
alias Ecto.Integration.Permalink

Diff for: test/ecto/query/planner_test.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ defmodule Ecto.Query.PlannerTest do
499499

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

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

Diff for: test/ecto/repo_test.exs

-9
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,6 @@ defmodule Ecto.RepoTest do
134134
end
135135
end
136136

137-
defmodule MySchemaVirtualEmbed do
138-
use Ecto.Schema
139-
140-
schema "my_schema" do
141-
field :x, :string
142-
embeds_one :virtual_embed, MyEmbed, virtual: true
143-
end
144-
end
145-
146137
defmodule MySchemaNoPK do
147138
use Ecto.Schema
148139

0 commit comments

Comments
 (0)