Skip to content

Commit 85cbee2

Browse files
committed
fix tests and remove debugging
1 parent 35f88a9 commit 85cbee2

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

test/ecto/integration/assoc_test.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ defmodule Ecto.Integration.AssocTest do
55
alias Ecto.Integration.{Post, Comment, Permalink}
66

77
test "has_many assoc" do
8-
Logger.configure(level: :debug)
98
p1 = TestRepo.insert!(%Post{title: "1"})
109
p2 = TestRepo.insert!(%Post{title: "2"})
1110

@@ -17,8 +16,6 @@ defmodule Ecto.Integration.AssocTest do
1716
assert c1.id == cid1
1817
assert c2.id == cid2
1918

20-
TestRepo.to_sql(:all, Ecto.assoc([p1, p2], :comments)) |> dbg
21-
2219
[c1, c2, c3] = TestRepo.all(Ecto.assoc([p1, p2], :comments)) |> Enum.sort_by(& &1.id)
2320
assert c1.id == cid1
2421
assert c2.id == cid2

test/ecto_ch_test.exs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,14 @@ defmodule EctoCh.Test do
7575
countIf(e0."type" != 'pageview') \
7676
FROM "events" AS e0 \
7777
WHERE (\
78-
e0."domain" IN ({$0:String},{$1:String})) AND \
79-
(e0."tags" = {$2:Array(String)}) AND \
80-
(toDate(e0."inserted_at") >= {$3:Date}) AND \
81-
(toDate(e0."inserted_at") <= {$4:Date}\
78+
e0."domain" IN {$0:Array(String)}) AND \
79+
(e0."tags" = {$1:Array(String)}) AND \
80+
(toDate(e0."inserted_at") >= {$2:Date}) AND \
81+
(toDate(e0."inserted_at") <= {$3:Date}\
8282
)\
8383
""",
8484
[
85-
"dummy.site",
86-
"dummy2.site",
85+
["dummy.site", "dummy2.site"],
8786
["1", "2", "3"],
8887
~D[2020-10-10],
8988
~D[2021-01-01]

0 commit comments

Comments
 (0)