Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/ecto/integration/logging_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
assert_received :logged
end

test "dispatches event with stacktrace" do

Check failure on line 49 in test/ecto/integration/logging_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.19 / OTP 28 / ClickHouse latest / TZ UTC / Dialyzer / Lint)

test telemetry dispatches event with stacktrace (Ecto.Integration.LoggingTest)
log = fn _event_name, _measurements, metadata ->
assert %{stacktrace: [_ | _]} = metadata
send(self(), :logged)
Expand Down Expand Up @@ -91,7 +91,7 @@
refute_received :logged
end

test "cast params" do

Check failure on line 94 in test/ecto/integration/logging_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.18 / OTP 27 / ClickHouse latest / TZ Europe/Berlin)

test telemetry cast params (Ecto.Integration.LoggingTest)
uuid = Ecto.UUID.generate()
# dumped_uuid = Ecto.UUID.dump!(uuid)

Expand Down Expand Up @@ -188,7 +188,6 @@
@uuid_regex ~r/[0-9a-f]{2}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i
@naive_datetime_regex ~r/~N\[[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\]/

@tag :skip
test "for insert_all with query" do
# Source query
int = 1
Expand Down Expand Up @@ -224,7 +223,7 @@
@tag skip: true
test "for insert_all with entries, placeholders and conflict query"

test "for insert" do

Check failure on line 226 in test/ecto/integration/logging_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.14 / OTP 25 / ClickHouse latest / TZ UTC)

test parameter logging for insert (Ecto.Integration.LoggingTest)
# Insert values
int = 1
uuid = Ecto.UUID.generate()
Expand Down
1 change: 0 additions & 1 deletion test/ecto/integration/repo_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

# TODO why tx
@tag capture_log: true
test "insert, update and delete with invalid prefix" do

Check failure on line 131 in test/ecto/integration/repo_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.19 / OTP 28 / ClickHouse latest / TZ UTC / Dialyzer / Lint)

test insert, update and delete with invalid prefix (Ecto.Integration.RepoTest)
post = TestRepo.insert!(%Post{})
changeset = Ecto.Changeset.change(post, title: "foo")
assert catch_error(TestRepo.insert(%Post{}, prefix: "oops"))
Expand Down Expand Up @@ -181,7 +181,7 @@
@tag skip: true
test "insert and update with changeset read after writes"

test "insert autogenerates for custom type" do

Check failure on line 184 in test/ecto/integration/repo_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.18 / OTP 27 / ClickHouse latest / TZ Europe/Berlin)

test insert autogenerates for custom type (Ecto.Integration.RepoTest)
post = TestRepo.insert!(%Post{uuid: nil})
assert byte_size(post.uuid) == 36
assert TestRepo.get_by!(Post, uuid: post.uuid).id == post.id
Expand Down Expand Up @@ -368,7 +368,7 @@
assert [%{visits: 2}, %{visits: 3}] = TestRepo.reload!([post1, post2])
end

test "first, last and one(!)" do

Check failure on line 371 in test/ecto/integration/repo_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.18 / OTP 27 / ClickHouse latest / TZ Europe/Berlin)

test first, last and one(!) (Ecto.Integration.RepoTest)
post1 = TestRepo.insert!(%Post{title: "1"})
post2 = TestRepo.insert!(%Post{title: "2"})

Expand Down Expand Up @@ -439,7 +439,7 @@
assert TestRepo.aggregate(query, :max, :visits) == 12
end

test "aggregate avg" do

Check failure on line 442 in test/ecto/integration/repo_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.14 / OTP 25 / ClickHouse latest / TZ UTC)

test aggregate avg (Ecto.Integration.RepoTest)
TestRepo.insert!(%Post{visits: 10})
TestRepo.insert!(%Post{visits: 12})
TestRepo.insert!(%Post{visits: 14})
Expand Down Expand Up @@ -530,7 +530,6 @@
end

describe "insert_all with source query" do
@tag :skip
test "insert_all with query and conflict target" do
{:ok, %Post{id: id}} =
TestRepo.insert(%Post{
Expand All @@ -556,7 +555,7 @@
assert %Post{title: ^expected_title} = TestRepo.get(Post, 0)
end

test "insert_all with query and returning" do

Check failure on line 558 in test/ecto/integration/repo_test.exs

View workflow job for this annotation

GitHub Actions / test (Elixir 1.14 / OTP 25 / ClickHouse latest / TZ UTC)

test insert_all with source query insert_all with query and returning (Ecto.Integration.RepoTest)
{:ok, %Post{id: _id}} =
TestRepo.insert(%Post{
title: "A generic title"
Expand Down
Loading