From e779c5c740e107f0824c210732ae845d40b44cd0 Mon Sep 17 00:00:00 2001 From: v0idpwn Date: Wed, 21 Jun 2023 15:16:36 +0600 Subject: [PATCH] Fix tests --- integration_test/cases/repo.exs | 1 + test/ecto/query/planner_test.exs | 4 ++-- test/ecto/repo_test.exs | 9 --------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/integration_test/cases/repo.exs b/integration_test/cases/repo.exs index 068cb96c42..429712bb71 100644 --- a/integration_test/cases/repo.exs +++ b/integration_test/cases/repo.exs @@ -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 diff --git a/test/ecto/query/planner_test.exs b/test/ecto/query/planner_test.exs index 74cc6da097..db6bd9e0fe 100644 --- a/test/ecto/query/planner_test.exs +++ b/test/ecto/query/planner_test.exs @@ -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( @@ -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 diff --git a/test/ecto/repo_test.exs b/test/ecto/repo_test.exs index 4218cb07de..85a99aa9db 100644 --- a/test/ecto/repo_test.exs +++ b/test/ecto/repo_test.exs @@ -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