Skip to content

Commit b1bee2a

Browse files
committed
Fix tests
1 parent 03c9300 commit b1bee2a

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

integration_test/cases/repo.exs

Lines changed: 1 addition & 0 deletions
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

test/ecto/query/planner_test.exs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ defmodule Ecto.Query.PlannerTest do
601601

602602
test "plan: generates a cache key" do
603603
{_query, _cast_params, _dump_params, key} = plan(from(Post, []))
604-
assert key == [:all, {:from, {"posts", Post, 50_009_106, "my_prefix"}, []}]
604+
assert key == [:all, {:from, {"posts", Post, 23210922, "my_prefix"}, []}]
605605

606606
query =
607607
from(
@@ -622,6 +622,7 @@ defmodule Ecto.Query.PlannerTest do
622622
)
623623

624624
{_query, _cast_params, _dump_params, key} = plan(%{query | prefix: "foo"})
625+
<<<<<<< HEAD
625626

626627
assert key == [
627628
:all,
@@ -636,6 +637,16 @@ defmodule Ecto.Query.PlannerTest do
636637
{:from, {"posts", Post, 50_009_106, "hello"}, ["hint"]},
637638
{:select, 1}
638639
]
640+
=======
641+
assert key == [:all,
642+
{:lock, "foo"},
643+
{:prefix, "foo"},
644+
{:limit, {true, 1}},
645+
{:where, [{:and, {:is_nil, [], [nil]}}, {:or, {:is_nil, [], [nil]}}]},
646+
{:join, [{:inner, {"comments", Comment, 38292156, "world"}, true, ["join hint"]}]},
647+
{:from, {"posts", Post, 23210922, "hello"}, ["hint"]},
648+
{:select, 1}]
649+
>>>>>>> e779c5c7 (Fix tests)
639650
end
640651

641652
test "plan: generates a cache key for in based on the adapter" do

test/ecto/repo_test.exs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -160,15 +160,6 @@ defmodule Ecto.RepoTest do
160160
end
161161
end
162162

163-
defmodule MySchemaVirtualEmbed do
164-
use Ecto.Schema
165-
166-
schema "my_schema" do
167-
field :x, :string
168-
embeds_one :virtual_embed, MyEmbed, virtual: true
169-
end
170-
end
171-
172163
defmodule MySchemaNoPK do
173164
use Ecto.Schema
174165

0 commit comments

Comments
 (0)